Web Service stub code different in FB4 than in Flex Builder 3

We have an application that was initially developer in Flex Builder 3 and used the Import Web Service wizard to generate all the  webservice stub code we needed. We then upgraded to using Flash Builder 4 and importing the wsdl using the Connect to Data/Service wizard writes different stub code than what we had in Flex Builder 3.
What happened and is there a way to have the Flash Builder 4 wsdl importer write the stub code the way the Flex Builder 3 importer did?

I figured out the RDS issue - check the web.xml file in the
WEB-INF folder of cfroot and webroot. I uncommented the
<servlet-name> and the <servlet-mapping> tags which
referenced RDS Servlet, restarted the server, and that took care of
the RDS issue.

Similar Messages

  • Using Oracle AS Web Services stub in portlet?

    I have built a portlet using the jdeveloper plugin wizard, and added a web service stub using the jdeveloper wizard for that. I have added no other code to the portlet than the stub. When running the portlet the classloader throws an class format exception. When using the same stub in a standalone application it runs fine. The libraries mentioned in jdevelopers under the system library "Oracle SOAP" has all been added to the webapplication web-inf/lib. How do I fix it?

    (coworker)
    We have solved the problem. It turned out that the auto generated stub contained code not compatible with the OC4J class loader (but compatible with normakl JVM classload). By modifying the stub a little we got it working. Here is the an extract from one method in the stub. The two line that work comes first and the two next lines contains the auto generated code
    public Integer dispatchFile(byte[] fileContent, Integer programID) throws Exception {
    params.addElement(new Parameter("fileContent", fileContent.getClass(), fileContent, null));
    params.addElement(new Parameter("programID", programID.getClass(), programID, null));
    // params.addElement(new Parameter("fileContent", byte[].class, fileContent, null));
    // params.addElement(new Parameter("programID", Integer.class, programID, null));
    The two original lines compiles into some static class members and a static method that fails to load.
    The new code does not produce any static content.
    We consider this behaviour to be an OC4J error.

  • Exception while accessing web service through code

    I have a web service developed using AXIS deployed on Weblogic 8.1
    Another web application cotaining GUI deployed on Weblogic 10 tries to access this web service through code.
    This piece of code to invoke the web service is written in Action Class present inside web application. (Struts is used in GUI based web app)
    When the code tries to invoke web service I am getting following error.
    (401)Unauthorized xxx
         at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
         at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
         at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
         at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
         at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
         at org.apache.axis.client.Call.invoke(Call.java:2553)
         at org.apache.axis.client.Call.invoke(Call.java:1753)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.invokeAx(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:243)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.callUCS77_1ProcessOfficialChangeWebService(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:173)
         at com.ebv.app.web.action.UCS77_1ProcessOfficialChangeSaveDetailsAction.processAction(UCS77_1ProcessOfficialChangeSaveDetailsAction.java:133)
         at com.ebv.framework.web.action.EBVAction.execute(EBVAction.java:106)
         at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
         at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    The web service URL is as follows:
    http://10.140.96.5:7808/services/ucs77_1/ProcessOfficialChangeSave77_1-v0001.soap
    However
    When I try to hit the webservice URL directly on browser login window appears where same username/password I provide which are passed in code to invoke the web service. I get the success page indicating that web service is invoked on hitting enter.
    The method used in UCS77_1ProcessOfficialChangeSaveDetailsAction.java to invoke web service is as follows:
    public String invokeAx
                   String xmlMessage,
                   String webServiceURL,
                   String webServiceOperation,
                   String username,
                   String password)
              String xmlResponse = null;
              Call webServiceCall = null;
              InputStream input = new ByteArrayInputStream(xmlMessage.getBytes());
              Service service = new Service();
              try
                   webServiceCall = (Call) service.createCall();
                   SOAPEnvelope env = new SOAPEnvelope(input);
                   SOAPEnvelope resEnv = null;
                   webServiceCall.setTargetEndpointAddress(new URL(webServiceURL));
                   webServiceCall.setOperationName(new QName(webServiceOperation));
                   webServiceCall.setUsername(username);
                   webServiceCall.setPassword(password);               
                   try
                        resEnv = webServiceCall.invoke(env);
                   catch (AxisFault e)
                        e.printStackTrace();
                        Message responseMessage = webServiceCall.getResponseMessage();
                        SOAPEnvelope soapXml = (SOAPEnvelope) responseMessage.getSOAPEnvelope();
                        xmlResponse = new String(soapXml.toString().getBytes(AppConstants.UTF8),AppConstants.UTF8);     
                   if (xmlResponse == null)
                        xmlResponse = resEnv.toString();
              catch (Exception e1)
                   e1.printStackTrace();
              return xmlResponse;
    Both the weblogic server reside on two different AIX machines.
    Can anybody tell what's the problem while invoking web service through code?

    time to look into the gateway logs as stated by the fault ..
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode xmlns:p="http://schemas.oblix.com/ws/2003/08/Faults">c</faultcode><faultstring>Step execution failed with an exception</faultstring><detail></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    looks like the cipher step might have failed

  • FlexBuilder Generated Web Service Stubs and requestTimeout

    I generated webservice stubs from a WSDL using Flexbuilder and during an operation I would like the request to timeout after a certain amount of time (say 5 seconds).  How would I get the generated web service stub to generate a timeout fault?  I tried setting the requestTimeout property in the autogenerated BaseService class, but it seems to have no effect

    Can you point me to any documentation that gives more information about this ? Because I came across a scenerio's once wher if I provide Ties it will accept them and it will not re-create them .........
    Both are tow scenerio with "server" = true option :
    Here's when it won't do it :
    If I run wscompile on a config file that provide's "service" tag and include all those ties generated in deployement file it won't re-create the ties.
    Bur here's when it will :
    If I run wscompile on config file that provides "wsdllocation" tag and than include those genertaed files in the deployement than it will re-create the ties again .
    Any idea about that ?
    Prashant

  • P1606dn does not print web services printer code

    A message appears informing web services printer code  will be printed. But it is not printed. This did work once. However i needed to remove the printer from eprintcenter and readd. Readd needed a new printer code??

    Hi there hope you are doing well Lochana;
    I will need to know what operating system and version of it do you have in your computer? If you need futher assistance.
    Watch this video; to get familiar with eprint registration procces
    Let's take this steps 1st.
    Perform a power reset on the HP product and wireless router, and then restart the computer
    Follow these steps to reset your HP printer, your wireless router, and your computer.
    Press the Power button ( ) on the HP printer to turn it off.
    Disconnect the power cord from the rear of the HP printer.
    Disconnect the power cord from the wireless router.
    Turn off the computer.
    Wait 30 seconds.
    Reconnect the power cord to the wireless router.
    Wait 30 seconds, or until the router is fully on and ready.
    Turn the computer back on.
    Wait for the computer to reload.
    Reconnect the power cord to the rear of the HP printer.
    Turn the printer back on.
    Try again to see if get the printe code.
    Enable Web Services from the Embedded Web Server (EWS)
    Use the following steps to enable Web Services on your HP product.
    Locate your product's IP address on the test page you printed previously.
    Open an Internet browser (such as Internet Explorer).
    Type the product IP address in the browser address bar, and then press Enter .
    The EWS opens.
    NOTE:If the EWS does not open, your product is not connected to the network. Test your network connections again and return to these steps.
    Click the HP Web Services tab.
    On the HP Web Services tab, click the green Enable button to enable Web Services.
    NOTE:If you see a green Remove Services button, then Web services is already enabled.
    When Web Services is enabled, the product prints an information page. This process might take a few minutes. The information page contains the printer code you use to register your HP product at HP ePrintCenter.
    Firmware update
    A firmware update might help to resolve wireless connectivity issues. Firmware updates are available for download on the Web. Follow these steps to obtain a firmware update for your product:
    NOTE:Firmware updates are different from product updates (that were referenced in the previous step). Make sure to perform both types of updates to guarantee that your HP product has the most up-to-date functionality.
    Click this link, HP Customer Care , to go to the HP Customer Care Support page.
    Type your product number in the search field, and then click Next . You might also need to click your model in a list of similar products.
    The product support page displays.
    Click Software & Driver Downloads , select your operating system, and then click Next .
    Click the Plus sign ( ) next to Firmware to view the firmware updates.
    Click the firmware update, and then follow the on-screen instructions to download and install the firmware.
    Hope this helps!
    RobertoR

    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • WSDL / Web Service Skeleton code Generation Tool

    Hello,
    My name is Joe Roberts. I am a developer in the Oracle Insurance Global Business Unit, A recent Oracle acquisition. I currently have the need to create a web service based on a schema that has certain base fields that never change and certain other base fields that do change based upon each customer implementation. What I am looking for is a tool that will generate a WSDL and web service skeleton code from a schema from the command line so that I can automate this process. Does Oracle offer such a tool? I have looked for one but have not found it. The only tool that I have been able to find that does this is Spring-WS but I would rather not use Spring-WS and go with an Oracle solution if possible.
    Thanks,
    Joe

    Hi,
    use wsa.jar (jdeveloper: e.g. jdeveloper10.1.3.3/webservices/lib/)
    for syntax read:
    http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28974/wsassemble.htm#CHDDBCCA

  • Document Literal Web Service Stub Error

    I am using jdeveloper 9.0.3 (necessary because we are doing OAF) and have created a Document Literal Web Service Stub. The stub runs perfectly in Jdeveloper, but when I move it to our 9iAS server (1.0.2.2.2), I get the error that it can not find the class \oracle\jdeveloper\webservices\runtime\WrappedDocLiteralStub.
    On my local machine this file is located in jdev-rt.jar, which is in /jdevbin/jdev/lib. Is there a special way to package the web service so that the jar file is included? Or is there a patch I need to apply to the apps server?
    Any help would be much appreciated.

    I am using jdeveloper 9.0.3 (necessary because we are doing OAF) and have created a Document Literal Web Service Stub. The stub runs perfectly in Jdeveloper, but when I move it to our 9iAS server (1.0.2.2.2), I get the error that it can not find the class \oracle\jdeveloper\webservices\runtime\WrappedDocLiteralStub.
    On my local machine this file is located in jdev-rt.jar, which is in /jdevbin/jdev/lib. Is there a special way to package the web service so that the jar file is included? Or is there a patch I need to apply to the apps server?
    Any help would be much appreciated.

  • Access user inside of web service stub (or web service)

    i am trying to access the current portal user from inside a web service and/or a web service stub. (note, ws is generated using xslt)...
    i found in an otn document (http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.web.services.for.portlets.html) the following:
    *** begin
    By using information specified in the XML provider definition (provider.xml), the renderers allow inputs to a web service to be "wired up" declaratively to any of the following sources of information.
    Portlet render request parameters, such as the username, locale and authentication level
    *** end
    it continues, but the above section seems relevant to me. it indicates that i should be able to get this information to my web service (through the renderer???). can someone please explain how? are there examples of this?
    thank you very much.
    chris

    found it...
    http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.BUILD.WEB.SERVICES.PORTLETS.HTML

  • Modifying properties with a file for Web Service Stub used for Oracle Forms

    I have created a stubbed-out web service in JDeveloper (10.1.3.4) and imported into Oracle Forms.
    However, I would like to use a properties file to call the appropriate endpoint based on if the environment is dev, test, UAT or prod. I see that a properties file is referenced in the _Stub class. Here is a snippet of code from that class file:
    public CriticalChangeWS_Soap11_Stub(HandlerChain handlerChain) {
    super(handlerChain);
    setProperty(ENDPOINTADDRESS_PROPERTY, "http://epw-01.gds.graebel.com:8087/CriticalChange.svc/Soap11");
    setSoapVersion(SOAPVersion.SOAP_11);
    setServiceName( new QName("http://tempuri.org/","CriticalChangeService"));
    setPortName( new QName("http://tempuri.org/","CriticalChangeWS_Soap11"));
    setupConfig("wsquery/proxy/runtime/CriticalChangeWS_Soap11_Stub.xml");
    How can I use the XML file to set the ENDPOINT_ADDRESS_PROPERTY?
    Thanks.
    Jim O

    Hi Frank,
    I got the following two lines of code just to check if WebServiceConnection was able to read the connections file alright.
                String urlString = wsc.getWsdlUrlStr();
                System.out.println("WSDL URL: "+urlString);
    I am not using urlString for further processing.
    The output is
    WSDL URL: http://<host>/PSIGW/PeopleSoftServiceListeningConnector/MyService.1.wsdl
    java.lang.NullPointerException
            at java.lang.Class.isAssignableFrom(Native Method)
            at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:97)
            at oracle.j2ee.ws.common.jaxws.runtime.GenericJavaType.create(GenericJavaType.java:118)
    The WSDL Url pointed to is the one that I configure in the connection while deploying the App.
    Ran a test and WSDL Url is accessible by the app.

  • Problem with Web Service Model code generation

    Hello,
    I'm importing two different web services into the same web dynpro component, which both contains properties "allGroup2" of type "All2".
    This causes some problems with the code generation, first of all the Model-classes can't be generated because they don't know which of the two All2-classes to use. If I fix that problem (which can be easily done by adding the correct import statement) I still can't use the models in my web dynpro component, since it too doesn't know which of the All2-classes to use.
    Even though I can fix this by adding imports and fixing the code, it of course gets regenerated next time I rebuild the project, and my changes are lost.
    Does anyone know how to solve this?

    Apparently this is a known bug which is fixed in SP15.
    Regards mattias

  • Call web service using code.

    we want to call a web service from ADF JSP form.
    We used web service data control. But deployment failed.
    we applied Patch 5878326 to JDeveloper 10.1.3.3.0 and OAS.
    But problem is not solved.
    So we need a new way to call web services.
    is there any other way to call web services from Jdev.
    any code sample will be appreciated.
    Thanks.

    Workaround for the Connection Failure
    In JDeveloper, locate the .deploy file in the Resources folder of your web application project.
    Double-click the file to open the WAR Deployment Profile Properties dialog.
    Expand File Groups - WEB-INF/classes - Contributors.
    In the Contributors panel, click Add and use the Browse dialog to locate the .adf folder in the root for your application (for example, /jdev/mywork//.adf path.)
    Select the .adf folder and add it as a contributor to the deployment profile.
    Note that the .adf folder does not become part of the deployable archive. This merely ensures that the contents of the META-INF get placed in an appropriate location in the archive that will permit the web container to find it when the application loads.
    The failure to get the connection to Webservice is beacuse the "connections.xml" is not available in the deployed archive.
    This has been release note'd as in
    http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.0.3/10.1.3_addendum.html under "Deployment issues"

  • SAP consume external web service - HTTP Code 200 : OK

    Hi
    We are integrating UPS Shipping Ground Web service with SAP system and we have the settings in place on our side and did a blank request test today and we are getting a " HTTP Code 200 : OK " error instead of a response.
    The SAP SOAManager shows the below detail for the error:
    A SOAP Runtime Core Exception occurred in method get_http_headers of class CL_SOAP_HTTP_TPBND_ROOT at position id 3 with internal error id 1007 and error text SRT: Unsupported xstream found: ("HTTP Code 200 : OK") (fault location is 1 ).
    One thing we noted but not sure about it is that the response content type is showing text/plain while the request shows content type accept text/xml in SOAManager trace functionality. (screen shot )
    I see several discussion on this but could not figure out what needs to be changed in SE80 consumer proxy or the SOAManager port level. Please advice.
    Regards,
    Prabaharan G

    hi Prabaharan! thanx for answer!
    i do integration with document scanning/recognitioning system (ABBYY FlexiCapture). It interact as SOAP services over MS IIS server in local network.
    what i`ve done:
    - drop everething at first.
    - create proxy in se80 using wsdl file. created ok.
    - create logical port in soamanager using "Create WSDL based configuration". created ok.
    - go to sm59. there are some connections but nothing like my connection. i have check all sections, not only type G(HTTP).
    AND HERE HAPPEN GREAT THING!
    Test "ping" fail but my test code start to work!
    All I have change is "url access path". So i think that was my problem. (I was confused by ping fail early and have trying to change all settings)
    you bring me luck - thank you very much!

  • InfoPath 2010 and REST web services, custom code button firing twice and second click fires error

    Hi,
    I have two supposing simple issues which I'm having problems correcting.
    If a add a button to the form and write some custom code (See below) to submit some data via a REST Web Service data connection. The code runs but somehow fires the URL twice to the web service.
    I've also recreated similar functionality using Rules on a button and some concat formulas and exactly the same thing happens when I the run the data using the Query Data Action, it fires the URL twice at the web service.
    How can I stop this.
    Secondly, if I use the custom code route, it work correctly the first time it pressed except for the double fire issue, but the second time I click the button the InfoPath internal system throws up an issue. See screen shot below.
    Any help would be appreciated.
    Rob
    namespace SubmitTest
    public partial class FormCode
    // Member variables are not supported in browser-enabled forms.
    // Instead, write and read these values from the FormState
    // dictionary using code such as the following:
    // private object _memberVariable
    // get
    // return FormState["_memberVariable"];
    // set
    // FormState["_memberVariable"] = value;
    // NOTE: The following procedure is required by Microsoft InfoPath.
    // It can be modified using Microsoft InfoPath.
    public void InternalStartup()
    //EventManager.FormEvents.Submit += new SubmitEventHandler(FormEvents_Submit);
    ((ButtonEvent)EventManager.ControlEvents["SaveDataPoint"]).Clicked += new ClickedEventHandler(SaveDataPoint_Clicked);
    /*public void FormEvents_Submit(object sender, SubmitEventArgs e)
    // If the submit operation is successful, set
    // e.CancelableArgs.Cancel = false;
    // Write your code here.
    MessageBox.Show("Submit Function Start");
    //SaveDataPoint_Clicked(sender);
    MessageBox.Show("Submit Function End");
    public void SaveDataPoint_Clicked(object sender, ClickedEventArgs e)
    try
    FileQueryConnection fqcConnection = (FileQueryConnection)this.DataConnections["TestREST"];
    string fqcFileLocation = fqcConnection.FileLocation;
    MessageBox.Show("fqcFileLocation " + fqcFileLocation);
    fqcFileLocation = fqcFileLocation + "?TestName='HugeArse'";
    fqcConnection.FileLocation = fqcFileLocation;
    fqcConnection.Execute();
    catch (Exception ex)
    MessageBox.Show("NewDataPoint_Clicked: Error " + ex);

    Hi Phillip6653,
    Did you check the similar
    thread to uninstall the windows update KB2756920 which was published on day 1/10? After auto install the update, on day 1/11, the same error occur when I open site using designer, after I uninstall it, it works for me, please have a check.
    For more information, see
    http://consultingblogs.emc.com/shailensukul/archive/2010/09/17/sharepoint-designer-error.aspx
    http://daniyar-tech.blogspot.com/2012/01/sharepoint-designer-2010-error.html
    Best Regards.
    Kelly Chen
    TechNet Community Support

  • Java ME 3.0 Web Services Stub Generator  Inheritance problem

    Hello,
    I have a problem with that relates to inheritance.
    Suppose I have abstract class User and class Member that extends class User.
    Suppose I have web service MyService:
    @WebService
    public class MyService {
    public User getUser(int id) {
    // do something
    When the server returns a Member instance instead of User I receive a MarshalException at the Client.
    The reason is " Invalid Element in Response:" + Member field that isn't part of User.
    I am using Java Me SDK 3.0 wscompile stub generator.
    I have also checked it with GlassFish stub generator wsimport and there the problem didn't appear.
    Ideas ?
    Thanks in advance,
    Raanan

    Seems like you are missing a necessary jar-file in your forms-classpath. Check the libraries attached to your project in Jdeveloper and add them to the path.

  • Web Services with two different "headers" for Request and Response

    Hello,
    I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
    I know exist an atribute called "SoapHeaderAttribute", the problem is his direction, just has one direction or two (in and out) but the same "header".
    I hope you can help me.
    Thanks in advance.

    Hi MaxLeyton,
    Thank you for posting in the MSDN forum.
    >>I am trying create a webmethod in a webservice, this webmethod must to have two different headers, one for request and one for response.
    Since it is related to the Web, to help you resolve this issue as soon as possible, you could post this issue to the ASP.NET forum.
    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Iphone 4s on iOS 7 - contacts do not sync anymore

    contacts in my iPhone 4s do not sync anymore. other apps (ical, photos, reminders, mail) are ok. as of now I need to sync contacts manually. I also have two MacBooks and an iPad and they are all in sync among themselves, but the iPhone itself is out

  • Which cable to connect macbook pro to tv

    WHich cable would I need to connect my macbbok pro to my 5 yr old panasonic viera tv - not HD but has HD ports. Hopefully to get audio without extra speakers.

  • Cafe townsend demo in dreamweaver help

    In dreamweaver Studio 8 there is help menu at top and it takes you thru for beginners. There is an example site called Cafe townsend and on it has a 'next button" that rotates images. How do you create that look with text on one side and images on th

  • How to logon to oracle at home

    I am running Windows 2000 and I downloaded a copy of Oracle but I can't seem to logon. What kind of username, password and host string should be used for SQL Plus? Thanks

  • Statistical indicator in Pricing schema.

    All, Can anyone explain the relevance of 'statistical ' indicator in pricing schema in simple terms with some examples ? regards