Files generated by Web Service Proxy give errors for complex input types

Hi ,
I generated a Java Web Service Proxy using a WSDL file.
The input params are of this fashion -
1) Object 1 have 3 attributes
2) Object 2 having nested Object 2 (yes , again) which has a nested attribute which needs to be passed say Param 1.
When I generate the proxy classes ... Param 1 is referred to as private Object2.Object2 param1 which gives error for the data types.
How can we resolve this .. what should be the correct data type representation for param 1 ?
Thanks

Issue was resolved . Details here - 11g PS2 - WebServiceProxy Class give errors for complex input types

Similar Messages

  • How to generate a Web Service Proxy for an ESB Routing Service?

    Hi,
    I have a SOAP service behind an ESB Routing Service. I am aware that i can call this ESB Service at the SOAP endpoint which can be found at the ESB Console after registration.
    But, i want to invoke this service using a Web Service Proxy. My understanding is that, i need to use the WSDL generated for the ESB Routing Service to generate the proxy. The WSDL which can be seen in JDeveloper does not have any soap bindings and hence the tool does not allow me to generate any proxy.
    Also, the two WSDLs whose URLs can be found at the ESB Console do not have the soap endpoint properties.
    Can someone help me out on the same?
    Thanks and regards,
    Priya.

    Priya,
    Just take the SOAP endpoint and suffix it with a ?wsdl
    Even the Concrete WSDL endpoint should be having a SOAP endpoint.
    HTH
    Uday

  • C# Web Service Proxy - Autogenerated Error

    Hi all,
    I'm trying to consume a SAP Webservice in a C# console application within Visual Studio 2005. I've added the web reference to the WSDL and as such Reference.cs has been automatically generated. My problem is that I'm receiving two different errors at multiple different locations within this file.
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public string Type {
                get {
                    return this.typeField;
                set {
                    this.typeField = value;
    On the line System.Xml.Serialization.XmlElementAttribute(Form=_System_._Xml_.Schema.XmlSchemaForm.Unqualified) (Surrounded by square brackets, I'm not sure how to escape the hyperlink code), I'm receiving the following errors respectively:
    System - An object reference is required for the nonstatic field, method, or property 'WSTest.dotnetWS.Bapiret2.System.get'
    XML - 'string' does not contain a definition for 'Xml'
    I'm not sure why, as this code has been automatically generated, that I'm receiving these errors, is there something that I need to change in order to rectify this problem?
    Thanks,
    Cal

    Thanks André, yes it was the same error.
    While I wasn't able to solve the clash of the Bapiret2 field SYSTEM with the .NET keyword System, I negated the problem by creating my own structure with the fields I needed (did not need the system field).
    So now my program compiles and runs, however - when I try to use the program, that is; i try to invoke the function module the WS is connected to, I receive the following error:
    System.InvalidOperationException: Namespace prefix ' SOAP-ENV' not defined
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadFaultCode(XmlReader reader)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadSoapException(XmlReader reader)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at WSWinApp.dotnetWebService.service.ZcalGetPdets2(ZcalGetPdets2 ZcalGetPdets21)
    My understanding of SOAP isn't that great but my first idea is that I think the WSDL may need a <SOAP-ENV:Envelope /> tag somewhere, although that's just a guess.
    If anyone could shed some light on how to solve this problem or even where to look it would be greatly appreciated.
    Thanks in advance.
    Cal

  • Consuming 3rd Party Web Service - Proxy Generation Error

    Hi All,
    I am trying to consume a third party Web Service in SE80 and get the below error while completing the steps to configure proxy class.
    "Exception Occurred in Configuration Handler"
    Uninstantiated object "new child subject" in method
    IF_SRT_WSP_SUBJECT_SERVICE~CREATE_BINDING of class CL_SRT_WSP_SUBJECT_SERVICE
    The same web service when I try to import in Java it is fine. Has anyone encountered this issue?
    Note: I tried both using URL and also saving as local file and its the same error message.
    Thanks,
    Nagarajan.
    The Question is still open.
    Edited by: Nagarajan Kumarappan on Oct 10, 2011 9:40 AM

    The problem we had was with the web service itself. There were in multiple places we had few definitions repeated which caused the issue. Once we removed it we were good. Use altova xml free for 30 days to check your wsdl. It's great tool to identify issues.
    Thanks and good luck !!!

  • IDOC - Web Service scenario gives errors when processing multiple IDocs

    Hi,
    I have an integration process defined in PI 7.1 that contains four major steps :
    -     Receive DEBMAS IDoc
    -     Call a RFC to get additional information
    -     Call a MS Dynamics web service to retrieve the MS Dynamics customer account number via the SAP customer number (synchronous call)
    -     Call a MS Dynamics web service to update customer info (asynchronous call)
    This process works well when one IDoc is processed.
    If however 10 Idocs are submitted, some updates are processed correctly, most of them are not (the find service call works perfectly fine). Sometimes 3 work fine, sometimes 1 (for the same 10 IDocs submitted)
    I did a test with SOAP UI where in a test script I submitted the 10 update service calls and this works fine.
    The error that is given in the adapter engine SOAP communication channel is :
    Message processing failed. Cause: (415)Cannot process the message because the content type 'multipart/related; type="text/xml"; start="<45504935B855BA3ACA0EA2FD503BC60F>"; boundary="----=_Part_20_1319086528.1239082062538"' was not the expected type 'text/xml; charset=utf-8'.
    I noticed in the message content that the SOAP calls that go wrong have two payloads attached, one for the Main Document and one for the XI Context.. The ones that are processed correctly only have one payload, the Main Document
    Anyone an idea what the cause can be ?
    Thanks,
    Jan

    Hi,
      Please check the transaction idx5 in PI system and see whether the IDOC status by double clicking on the corresponding Transaction ID.
      I think this might be due to some invalid data coming from the source system
    Thanks,
    Tiny

  • REST web-service invocation gives error ORA-29266: end-of-body reached

    We are trying to consume a REST web-service. We send county code and country name to the WS, it then inserts the data and sends us a response in XML.
    I used this PL/SQL code to invoke the rest WS.
    http://blog.warp11.nl/2011/07/calling-a-rest-webservice-with-plsql/
    Problem is there is an error ORA-29266, when processing the utl_http.read_text(t_http_resp, t_respond);
    The error means that there is no response. i.e. NULL response.
    We can PING the service the WS is, so we are not using authentication. Could this be the problem?
    Any help could be greatly appreciated.
    Edited by: user12240205 on Aug 5, 2011 3:33 AM

    We are trying to consume a REST web-service. We send county code and country name to the WS, it then inserts the data and sends us a response in XML.
    I used this PL/SQL code to invoke the rest WS.
    http://blog.warp11.nl/2011/07/calling-a-rest-webservice-with-plsql/
    Problem is there is an error ORA-29266, when processing the utl_http.read_text(t_http_resp, t_respond);
    The error means that there is no response. i.e. NULL response.
    We can PING the service the WS is, so we are not using authentication. Could this be the problem?
    Any help could be greatly appreciated.
    Edited by: user12240205 on Aug 5, 2011 3:33 AM

  • LCDS web service call throwing error for valid XSD URL

    Hi,
    I am trying to call a web service which is deployed on a J2EE application[ Project name : WebServiceApplication ] through a different LCDS application [ Project name : lcdsTestWebService] But while loading of mxml following error comming into console.
    Can any one explain that why Flex application is looking for DocTypeTestService_schema1.xsd  into lcdsTestWebService application when this xsd is
    present in WebServiceApplication project.
    One intresting point which i found that if i place this xsd into root of lcdsTestWebService application so that it is accessable through
    url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd" than there is no issue and web service call sucessfully
    happen.
    [2/14/11 16:23:18:208 IST] 0000002c SystemOut     O [LCDS]Deserializing AMFX/HTTP request
    Version: 3
      (Message #0 targetURI=null, responseURI=null)
        (Typed Object #0 'flex.messaging.messages.HTTPMessage')
    (Object #1)
            body =       clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          contentType = "application/x-www-form-urlencoded"
          destination = "testWebservice"
    (Object #2)
            DSEndpoint = "my-http"
            DSId = "A568DE2A-2809-A1FE-0934-D3ECBC19337C"
            headers =       httpHeaders = null
          messageId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"
          method = "GET"
          recordHeaders = true
          timestamp = 0
          timeToLive = 0
          url = "http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd"
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- GET : http://localhost:9080/lcdsTestWebService/DocTypeTestService_schema1.xsd
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Cookie in request: domain = 'localhost', path = '/', client name = 'JSESSIONID', endpoint name = 'JSESSIONID', value = '0000Ii8aRUEKjvhE38Bd_dyW3jw:-1
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept : */*
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Accept-Language : en-US
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Referer : http://localhost:9080/lcdsTestWebService/SampleWebService.swf/[[DYNAMIC]]/6
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: x-flash-version : 10,1,102,64
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Content-Type : application/xml
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: User-Agent : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 3.5.30729; InfoPath.2; .NET CLR 1.1.4322; MS-RTC LM 8; SLCC1; MS-RTC S; USPortal)
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Header in request: Cache-Control : no-cache
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- Begin GET request --
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]
    [2/14/11 16:23:19:591 IST] 0000002c SystemOut     O [LCDS]-- End GET request --
    [2/14/11 16:23:20:191 IST] 0000002d FfdcProvider  I com.ibm.ws.ffdc.impl.FfdcProvider logIncident FFDC1003I: FFDC Incident emitted on C:\IBM\WebSphere\Appserver\profiles\AppSrv04\logs\ffdc\server1_1aaf1aaf_11.02.14_16.23.19 .98114899428566798599.txt com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor.handleRequest 573
    [2/14/11 16:23:20:391 IST] 0000002c SystemOut     O [LCDS]Serializing AMFX/HTTP response
    Version: 3
      (Message #0 targetURI=/onStatus, responseURI=)
        (Typed Object #0 'flex.messaging.messages.ErrorMessage')
          body = null
          messageId = "A568F5E1-EF0D-DCBC-6AB1-912C2FEAACB2"
          extendedData = null
          clientId = "A568DF0F-A60A-1473-CDAB-707E4A185812"
          headers = (Object #1)
            DSStatusCode = 404
          rootCause = null
          destination = "testWebservice"
          faultCode = "Server.Proxy.Request.Failed"
          faultString = "HTTP/1.1 404 Not Found"
          faultDetail = "HTTP/1.1 404 Not Found"
          timeToLive = 0.0
          timestamp = 1.297680800351E12
          correlationId = "9F6F7661-8FA1-30CA-3F04-23CD91C1AF90"

    I received a workaround by an internal message.
    The how to guide is :
    -Download the wsdl file (with bindings, not the one from ESR)
    -Correct it in order that the schema corresponds to the answer (remove minOccurs or other things like this)
    -Deploy the wsdl file on you a server (java web project for exemple). you can deploy on your local
    -Create a new logicial destination that point to the wsdl file modified
    -Change the metadata destination in your web dynpro project for the corresponding model and keep the execution desitnation as before.
    Then the received data is check by the metadata logical destination but the data is retrieved from the correct server.

  • Generating WEB SErvice proxy client error: (type octet-stream)

    HI,
    I'm trying to generate a proxy client from a WSDL which has an element defined as "octet-stream" from http://xml.apache.org/xml-soap
    But I'm getting this error: "model error: type {http://xml.apache.org/xml-soap} octet-stream not found"
    Some suggestion...what can i do.
    thanks

    HI,
    I'm trying to generate a proxy client from a WSDL which has an element defined as "octet-stream" from http://xml.apache.org/xml-soap
    But I'm getting this error: "model error: type {http://xml.apache.org/xml-soap} octet-stream not found"
    Some suggestion...what can i do.
    thanks

  • Calling external web service - Proxy Authentication error

    Using Developer 10.1.3.3 and following OTN example http://www.oracle.com/technology/products/forms/htdocs/10gr2/howto/webservicefromforms/ws_10_1_3_from_forms.html.
    I have followed the above example and am trying to test the SendServiceSoapClient.java in JDeveloper. The class compiles ok but when I run it I receive the following error in the log window :
    HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Bad response: 407 Proxy Authentication Required
    As I was able to create the proxy with no problems, the proxy settings in Tools->Preferences are valid. I don't understand at what point it is failing as I am able to access the wsdl in the example from JDeveloper. I have checked the system settings for the proxy (username/pwd/host etc) at run time and they are as expected.
    Can anyone make any suggestions? I have had my user details checked on our proxy server and it is not blocked from performing any actions. Is the message indicating I am being blocked from accessing the service from the suppliers end?

    I have a solution for the problem I encountered.
    My collegues who look after the proxy server and network first tried to bypass authentication for the web site www.esendex.com (where the service resides). The same error occurred when trying to call the service.
    They then set up a route on the network to send the request straight to www.esendex.com and a rule on the firewall to allow the request 'out'. This has done the trick and the request passes through!
    Unfortunately, I am not much clearer as to why our proxy server is configured to block this message type and how come it can't be changed! Hey ho, I have a solution for now!

  • Error when generating Web Services Proxy for SCA Application Module

    Hello,
    I'm trying to create Web Services for a simple Application Module with JDeveloper 11g (11.1.1.3.0).
    I start a new ADF Project, I create an Application Module as simple as possible : it contains only a simple View Object on the DEPT Entity.
    On my Application Module, I choose "Service Interface" and I add my View Object in the service interface.
    I test my Web Service in the Embedded Weblogic Server, it works well. (I succeed in using the Get operation, for example).
    But when I try to generate a Web Service proxy (right-click on the WSDL File -> Generate Web Service Proxy), It always fail with such errors :
    oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/C:/JDeveloper/mywork/ApplicationAppelServiceSCA/Model/src/model/common/AppModuleService.wsdl": 'unset' is already defined'Bytes' is already defined'ref' is already defined'Duration' is already defined'Types' is already defined'Character' is already defined'type' is already defined'Day' is already defined'nestedInterfaces' is already defined'Date' is already defined'datagraph' is already defined'Type' is already defined'Integer' is already defined'ModelsType' is already defined'ChangeSummaryType' is already defined'instanceClass' is already defined'Month' is already defined'DataObject' is already defined'javaClass' is already defined'LongObject' is already defined'DateTime' is already defined'dataObject' is already defined'YearMonth' is already defined'ShortObject' is already defined'Long' is already defined'types' is already defined'JavaInfo' is already defined'IntObject' is already defined'Boolean' is already defined'DoubleObject' is already defi...
    Can someone help me to understand this error ?
    i never manually edited the WSDL File, so I don't understand why the generated WSDL or XSD files might contain errors.
    Thanks for your Help,
    Laurent

    We have the same problem, and the problem was in the xsd import:
    The wdsl import a schema that import other schema, the second import use a relative path, that was wrong.
    So check the xsd import sequence....

  • OER: Generate Web Service Proxy REX in JDeveloper

    Hi,
    I want to generate a Web Service Proxy for REX (OER version 11.1.1.5.0) using JDeveloper 11.1.1.5.0. I am using JAX-RPC Weblogic Style. When I start the Web Service Proxy Generator it fails with the following error:
    "The WSDL document contains the following errors:
    Operation "assetTypeTabsRead" and "assetTabApprove" have conflicting SOAPAction avlues. Do not overload any operation or given unique SOAPAction value to each operation binding.
    And many more (42481) ...."
    I am looking for the correct way to generate a Service Proxy foor REX and JDeveloper. Any help is appreciated.
    Best regards,
    Sjoerd
    Edited by: Sjoerd Aalbers on Dec 11, 2011 2:18 PM

    'Generate Web Service Stub/Skeleton' option in 10.1.2, was replaced by 'Generate Web Service Proxy' in 10.1.3

  • Which JAR's are required to run a Web Service Proxy?

    Hi,
    I successfully generated a Web Service Proxy, which runs when I start it in JDeveloper. However when I generate a JAR with all classe files, and try to start the main class of this JAR I get the following error:
    java.lang.NoClassDefFoundError: javax/xml/rpc/ServiceFactory
    Which additional JAR's do I need to run the Web Service Proxy outside JDeveloper.
    Note, that I have JRE 1.4 and not 5!
    Thanks for hints Thomas

    Hi,
    the class is part of Java EE 5 platform. So you need to run it n that context
    Frank

  • Invoke BPEL by Web Services Proxy

    I use JDev 10.1.3.1 to generate a web services proxy to invoke BPEL, and i remove the BPEL version number in the java stub (invoke Default BPEL if no version stated) from
    _setProperty(ENDPOINT_ADDRESS_PROPERTY, "http://testmachine:7779/orabpel/TestingBPEL/1.0");to
    _setProperty(ENDPOINT_ADDRESS_PROPERTY, "http://testmachine:7779/orabpel/TestingBPEL");
    After removed it, the proxy is failed to invoke.
    However, it is works fine for those proxy generated by previous version of JDev such as 10.1.3 and 10.1.2
    Anyone knows how to fix it?

    I am facing exactly the same issue. Anyone have any pointers on how to make the proxy classes visible to the application server? I have tried including them under $JAVA_TOP and as a ZIP file added to the classpath

  • Web service proxy receiving single element in array

    I've generated a web service proxy over a web service and expect to get multiple elements returned from the web service. However when I excute the proxy I receive only the first element. Testing the web service with the same parameters on the application server shows that I should be receiving 3 elements in total. Not sure where the disconnect is in generating the response message within the proxy. Any suggestions is appreciated.

    Are you looking for SOAP ENC Array feature? Which version are you using 10134 or 11g?

  • Dynamic wsdl for web service proxy

    Hi,
    I have generated the Web service proxy client based on wsdl used in dev env,
    if i have to deploy to production, i have to manually change the WSDL url to point to production.
    Is there anyway, I can deploy without changing manually.
    thanks

    thanks all from the prompt replies.
    I still have a query. All i can do is create various WS references in connections.xml and call dynamically. like
    Context ctx = ADFContext.getCurrent().getConnectionsContext();
    WebServiceConnection wsc = (WebServiceConnection) ctx.lookup("MyConnection1"); // here i can make a dynamic call ...
    but this piece of code can work only in UI. what if i need to do the same approach in model from my AM.
    Is there a way ??

Maybe you are looking for

  • How to get discount price

    Notice: This message has been originally posted on the Old operations exchange community  and reposted to the Cisco Services Community as part of the migration effort. The original posting was by: Siren Eam on March 31, 2013.  Responses to the postin

  • How to display a region in the center of the page

    Hi, I am trying to position a region in the center of the page and I am using the following in the region attributes field style="width:70%; region = "center";" but the region is positioned to the left only. Is there any other method to do this work.

  • Date column with format mask 'hh12:mi pm'

    let's say the user input record as shown below : trip At01 At02 1 9:30 AM 12:30 PM At02 & At02 are date column with format mask 'hh12:mi pm'. When the user input 9:30 and tab to next item, the column will display as 09:30 AM. Then when user input 12:

  • Credit Report Payment History

    I'm trying to figure out how to bump my fair pmt history on 3 reports to good.  Ch 7 was discharged 11/14.  Currently have 5 cards-Credit One CL $700, Merrick CL $700, Barclyacard CL $1,500, Cap One CL $3,000, Cap One QS CL $3,000, Amazon Store CL $2

  • How to make a track your iPhone ringtone?

    Hello, Using the Apple iPhone 3G and iTunes 8, how does one set or create a track to become your choice iPhone ringtone? Paul