XML Deserialization Error

Hi,
I'm workin on a prototyp based on the netweaver developer studio preview. after i've steped to the several tutorial for webservices und webdynpro.
I've implemented a ejb/webservice combination for selecting a insurance contract from our databases based on existing java-classes to use the webservice as a model in the webdynpro-app. So fare everything worked fine.
Know I've made a little change and filled the contract with aditional information about the customer to this contract (i didn't modified the class if just filled e member of the contract which was null bevor). After deploying the webservice i got the following error message:
Service call exception; nested exception is: com.sap.engine.services.werservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element [urn:de.deutscherring.base]<nummer> is required in <ns16:personVn> but can not be found.
When i test the webservice i get the same error.
I've searched a the classes which a direct or indirect owned by the Person-Object and found only on member named nummer but it's an int, which can't cause trouble with deserialization.
Are anyone their wo can help me?
Thanks in advance.
Oliver

Hi Oliver,
Check what is the request and the response. Where does the deserialization fail - on the client or on the server side?
<i>You can increase the severity of your web service location via the Visual Admin and Log Configurator Service to debug in order to log also the request and response messages (Location: com.sap.engine.services.webservices.runtime...)</i>
If the response is fine, then maybe your WS Client Proxy needs to be regenerated in order to reflect your change.
Otherwise, please create a CSN message.
Best regards,
Alexander

Similar Messages

  • XML Deserialization error while consuming Enterprise service in wd java..

    Hello,
    I am trying to build 2 webdynpro java webdynpro applications which consumes enterprise service for purchase order and another application for Busines partner.
    While i was able to successfully consume the PO service in webdynpro java and get the desired output for PO..i get XML Deserialization error while running appliation for Business Partner..
    These are the details/steps i followed for the Business Partner application:
    1. After creating the model using the enterprise service, i created a service controller from the model to the component controller..
    2. Out of many inputs/output attributes during mapping from model to component controller. i further mapped the context from CC to ViewC.
    3. In the wdDoInit() method, i added the follwing code:
        BPCreate model1 = new BPCreate();
        Request_BusinessPartnerERPCreateRequestConfirmation_In RequestC = new  Request_BusinessPartnerERPCreateRequestConfirmation_In(model1);
        BPERPCrteReqMsg_S CreateMessage = new BPERPCrteReqMsg_S(model1);
        BPERPCrteReq_SBP Cpartner = new BPERPCrteReq_SBP(model1);
    String Category = new String();
        String lf = new String();
        Cpartner.setInternalID(new String());
        Cpartner.setNumberRangeIntervalBusinessPartnerGroupCode(new String());
        Cpartner.setLifeCycleStatusCode(lf);
        Cpartner.setCategoryCode(Category);   
        CreateMessage.setBusinessPartner(Cpartner);
        RequestC.setBusinessPartnerERPCreateRequestMessage_Sync(CreateMessage);
        wdContext.nodeBusinessPartnerERPCreateRequestMessage_Sync().bind(CreateMessage);
    4. When i comment this code and run the application, the aplication comes up but the input fields are non-editable..
    5. If i place this code in wdDoInit() method, i get the Deserialization error..
    Any idea about why this error occurs and which areas in the application can lead to these errors?
    I checked that the service runs fine in soamanager.
    Thanks, JVR

    Hi Kishore,
    This error is majorly because while executing this Webdynpro application you are not entering all the mandatory fileds of WS.
    Please try to execute this WS from WS-Navigator, check which fileds are mandatory and then
    appropriately instantiate it in wdDoInit and pass all the fields required.
    Regards,
    Vaibhav Modi.

  • Web Service: XMLUnmarshalException: XML Deserialization Error

    Hi,
    I am trying to use a complex web structure in web service.
    I am simply trying to display some data from that web service in my view.
    I am getting the foll error:
    <b>
    Service call exception; nested exception is:
         com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element [http://www.siebel.com/xml/Account Interface]<Account> is required in <SiebelMessage> but can not be found.[Ljava.lang.StackTraceElement;@2fe4e7
    </b>
    I have gone thru most of the posts but they all have XMLMarshalException and not XMLUnmarshalException.
    Any inputs please?
    Regards,
    Dev

    Hi Bala,
    I tried your suggestion but that did not work!
    I am not trying to test that web service via WSNavigator.
    Problem is my service does not come there once i deploy it.
    I am a newbie to WebServices so please correct me where am I wrong in these steps:
    1. I create a Deployable Proxy Project
    2. Then, i create a new Client Proxy Definition
    3. I enter pkg name, Proxy name, choose Local System. Then i give the WSDL location and finally press Finish.
    (It has created several files including ClientAPI.jar)
    4. Lastly, i chose Build EAR and deployed it.
    But i cannot see my web service in that list!
    Can you please help me in checking the request-response cycle for this web service.
    Regards,
    Dev

  • Problem with XML Deserialization Error

    Hi! when I test my webservice, I take the following error: Deserializing fails. Nested message: XML Deserialization Error. Result class com.sap.gram.SelRec.SelRec_CompGenModel does not have property of type java.lang.String. It is required to load XML..
    I don´t understand why occur this!! CiEntId is a string with the property of a primaryKey
    What can I do??
    Thanks
    Rose

    Hi Rosa,
    I've got the same error message, but in another scenario. I'm testing a XI Web Service, with a defined WSDL. To test it I'm using WS Navigator (http://host:port/wsnavigator/enterwsdl.html). Although all the types I'm returning are on the WSLD definition, the dumb WS Navigator fires the "XML Deserialization Error", and says that a type is not defined in the wsdl (but the type is there, and other test tools are working fine with it!).
    roberti

  • Web Service:  XML Deserialization Error

    Hallo experts
    I call one service on the SAP Applikation server (7.1 Enhancement) and get the following error:
    com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. Empty node passed to deserializer com.sap.engine.services.webservices.jaxrpc.encoding.primitive.DateTimeSD which is not acceptable.&#13;
    If I use the SOAP to call the service I got the answer as following:
    has no value. Is this the reason that causes this problem?  If it is, how can I get the result in this case withoutrthis error. Because we get always Items from the backend that some fields were not filled.
    Thanks a lot and
    Nice regards!
    Ping

    Hi Bala,
    I tried your suggestion but that did not work!
    I am not trying to test that web service via WSNavigator.
    Problem is my service does not come there once i deploy it.
    I am a newbie to WebServices so please correct me where am I wrong in these steps:
    1. I create a Deployable Proxy Project
    2. Then, i create a new Client Proxy Definition
    3. I enter pkg name, Proxy name, choose Local System. Then i give the WSDL location and finally press Finish.
    (It has created several files including ClientAPI.jar)
    4. Lastly, i chose Build EAR and deployed it.
    But i cannot see my web service in that list!
    Can you please help me in checking the request-response cycle for this web service.
    Regards,
    Dev

  • XmlUnmarshalException: XML Deserialization Error

    Hi, I have generated a Deployable WebService Proxy of a external WebService from the Provider ESRI (http://arcweb.esri.com/arcwebonline/index.htm) with SAP Dev Studio SP9 and deployed to the WAS 6.40 SP9.
    Within a Servlet i called first the WebService Authentication to get a Token which works fine and then the WebService AddressFinder.findAddress() to get the Datas but this Call throw a Exception
    ==> "Service call exception; nested exception is:
    com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element []<errorCode> is required in <soap:Body> but can not be found."
    The required element <errorCode> descriped in the WDSL Definition is nillable="true" so not required!
    - <xsd:complexType name="LocationInfo">
    - <xsd:sequence>
      <xsd:element name="matchType" nillable="true" type="xsd:string" />
      <xsd:element name="candidates" nillable="true" type="ns12:ArrayOfLocation" />
      <xsd:element name="hasMore" type="xsd:boolean" />
      <b><xsd:element name="errorCode" nillable="true"</b> type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
    I checked also the SOAP response on the J2EE which was ok:
    Message : HTTP/1.1 200 OK
    Server: Sun-ONE-Application-Server/7.0
    Date: Wed, 12 Jan 2005 10:11:31 GMT
    Content-length: 1534
    Content-type: text/xml; charset=UTF-8
    Optimizable: true
    Connection: close
    <?xml version='1.0' encoding='UTF-8'?>
    <soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:soapenc='http://schemas.xmlsoap.org/soap/encoding/' soap:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/' xmlns:ns5='http://www.themindelectric.com/package/com.esri.is.services.common.v2/' xmlns:ns6='http://www.themindelectric.com/package/com.esri.is.services.common.v2.geom/'><soap:Body><n:findAddressResponse xmlns:n='http://arcweb.esri.com/v2'><Result href='#id0'></Result></n:findAddressResponse><id0 id='id0' soapenc:root='0' xsi:type='ns5:LocationInfo'><matchType xsi:type='xsd:string'>EXACT</matchType><candidates href='#id1'></candidates><hasMore xsi:type='xsd:boolean'>false</hasMore></id0><id1 id='id1' soapenc:root='0' xsi:type='soapenc:Array' soapenc:arrayType='ns5:Location[1]'><i href='#id2'></i></id1><id2 id='id2' soapenc:root='0' xsi:type='ns5:Location'><point href='#id3'></point><description1 xsi:type='xsd:string'>Ammann Strasse 2, 3074, Muri Bei Bern</description1><score xsi:type='xsd:double'>0.0</score><matchType xsi:type='xsd:string'>100</matchType></id2><id3 id='id3' soapenc:root='0' xsi:type='ns6:Point'><x xsi:type='xsd:double'>7.496564</x><y xsi:type='xsd:double'>46.926945</y><coordinateSystem href='#id4'></coordinateSystem></id3><id4 id='id4' soapenc:root='0' xsi:type='ns6:CoordinateSystem'><projection xsi:type='xsd:string'>4326</projection></id4></soap:Body></soap:Envelope>
    Is there anything wrong, has anybody a solution?
    Thanks Vince

    Hi Vilish,
    I have a Web Dynpro application that uses a Web Service model. The Web Service is located on a remote non-SAP server, and i generated proxies based on its WSDL.
    The error occurs at this procedure,
    someElementObj.modelObject.execute();
    This procedure is to send a request with parameters to a Web method, and then retrieving data from the response XML before storing the data in the model context. So, I suspect this happens during retrieving process.
    Thanks,
    Teecheu

  • XmlUnmarshalException: XML Deserialization Error Please Help!!!

    Hi All,
    I am consuming the standard webservice
    Name: /SAPAPO/SDM_PARCRTRC
    I am getting the following error on execution of the web service:
    Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element []<ScheduleLine> is required in <NameSpecification> but can not be found.
    Please help me with this problem.
    Thanks in Advance.

    Hi All,
    Thanks for your replies.
    They were helpful but this what I did that solved the problem
    I used the following code to set the required parameters
    item.getOriginalBean().setScheduleLine(new ScheduleLineInner[] {scheduleLine.getOriginalBean()});
    instead of
    item.addScheduleLine(scheduleLine);
    Similarly all the parameters were set using the orginalBean
    Now it is working perfectly fine....
    Thanks a lot..
    Setu

  • XML Deserialization Error when calling WebService from WebDynrpo

    Hi all,
    when calling a WebService-method from my WebDynpro-application, I get the following error message:
    "Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of class [com.karmann.ApplMan.dto.SoftwareKomponenteDTO] when deserializing XML type [urn:com.karmann.ApplMan.dto][SoftwareKomponenteDTO].."
    SoftwareKomponenteDTO is a class that I have implemented. It implements Serializable and overwrites the methods "equals()" and "hashcode()". It contains members of types long, String and java.sql.Date.
    The method I call needs an argument of type SoftwareKomponenteDTO. Other methods which return something of type SoftwareKomponenteDTO do not make any problems.
    The same error message appears when I test the WebService-method in the WebService-navigator. So I assume that the problem is not the way I call the method from WebDynpro.
    Thanks for help,
    Christoph

    Thanks for this hint, Amar. But this points directly to my next problem: How can I set this parameter. I know how to set flat parameters (e.g. of type long, boolean, etc.). But how can I set a parameter of a complex type?
    For example I can call
        wdContext.currentSaveElement().setIdFather(long id)
    in order to set the parameter idFather of type long for the WebService-method save(). But there is no method
         wdContext.currentSaveElement().setIdFather(SoftwareKomponenteDTO aKomp)
    Could you please help me on more time?
    Kind regards,
    Christoph

  • XML Deserialization Error when calling WebService-method

    Hi all,
    when calling a WebService-method from my WebDynpro-application, I get the following error message:
    "Deserializing fails. Nested message: XML Deserialization Error. Can not create instance of class [com.karmann.ApplMan.dto.SoftwareKomponenteDTO] when deserializing XML type [urn:com.karmann.ApplMan.dto][SoftwareKomponenteDTO].."
    SoftwareKomponenteDTO is a class that I have implemented. It implements Serializable and overwrites the methods "equals()" and "hashcode()". It contains members of types long, String and java.sql.Date.
    The method I call needs an argument of type SoftwareKomponenteDTO. Other methods which return something of type SoftwareKomponenteDTO do not make any problems.
    The same error message appears when I test the WebService-method in the WebService-navigator. So I assume that the problem is not the way I call the method from WebDynpro.
    Thanks for help,
    Christoph

    Hi all,
    I found what my problem was. The complex type that I deliver to my method (i.e. SoftwareKomponenteDTO) must have a public constructor without parameters. I think that this is slightly confusing, because in the other direction (method delivers complex type as return value) this is not neccessary. Anyway, my problem's solved now.
    Regards,
    Christoph

  • How To Debug XML Serialization Error while deploy web services

    <b>My Scenario</b>
    I've created a Java Projects with a Class. From there I convert it to Web Service by creating the virtual interface, the web services definition and the web service configuration. After that I deploy to the SAP WAS (SP11). At this instant I only try to deploy the web services with the intension to modify it later for GP to invoke.
    <b>Result</b>
    When deployment the Web Service I get an XML Deserialization error. Error text is below.
    <b>Question</b>
    How do I go about debugging this? What logs are good starting point? Can I capture the entire SOAP response message somehow?
    Thanks
    <b>
    Error Test</b>
    Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML Node [VirtualInterface.Functions][http://xml.sap.com/2002/10/metamodel/vi] have minOccurs>0 in schema definition but is missing in node [VirtualInterface][http://xml.sap.com/2002/10/metamodel/vi].
                              at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType._loadInto(GeneratedComplexType.java:1197)
                              at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType.deserialize(GeneratedComplexType.java:945)
                              at com.sap.engine.services.webservices.server.deploy.descriptors.vi.VInterfaceParser.getVInterface(VInterfaceParser.java:46)
                              at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseVI(WSDefinitionFactory.java:920)
                              ... 27 more
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:681)
                              at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
                              at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
                              at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                              at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                              at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
                              at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
                         Caused by: java.lang.Exception: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occurred, trying to update web services for application sap.com/TimeoffService. . Additional info: none
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:164)
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:118)
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:86)
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateManager.makeUpdate(WSUpdateManager.java:52)
                              at com.sap.engine.services.webservices.server.deploy.WSDeployer.makeUpdate(WSDeployer.java:274)
                              at com.sap.engine.services.deploy.server.application.UpdateTransaction.makeComponents(UpdateTransaction.java:400)
                              at com.sap.engine.services.deploy.server.application.DeployUtilTransaction.commonBegin(DeployUtilTransaction.java:321)
                              at com.sap.engine.services.deploy.server.application.UpdateTransaction.begin(UpdateTransaction.java:164)
                              at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesOnOneServer(ApplicationTransaction.java:292)
                              at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhases(ApplicationTransaction.java:326)
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.makeGlobalTransaction(DeployServiceImpl.java:3184)
                              at com.sap.engine.services.deploy.server.DeployServiceImpl.update(DeployServiceImpl.java:669)
                              at com.sap.engine.services.deploy.server.DeployServiceImplp4_Skel.dispatch(DeployServiceImplp4_Skel.java:1278)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:320)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:198)
                              at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129)
                              at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                              at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                              at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                              at java.security.AccessController.doPrivileged(Native Method)
                              at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
                              at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
                         Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices deployment exception! The reason is: Error occurred, trying to generate web services deployment files for application sap.com/TimeoffService. . The error refers to application: none, jar: , web service: .
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:296)
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.deployWebServices(WSUpdateProcessor.java:262)
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.updateWebServices(WSUpdateProcessor.java:155)
                              ... 21 more
                         Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occurred, parsing com.sap.engine.services.webservices.server.deploy.descriptors.sapwebservices.WSDescriptor descriptor, application sap.com/TimeoffService, web service timeoffServiceConfig, location message: type: jar file, location: E:\usr\sap\SIC\DVEBMGS01\j2ee\cluster\server0\.\temp\deploy\work\deploying\reader1186995503687\TimeoffService.wsar . . Additional info:
                              at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:907)
                              at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebService(WSDefinitionFactory.java:176)
                              at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.loadWebServices(WSDefinitionFactory.java:158)
                              at com.sap.engine.services.webservices.server.deploy.ws.update.WSUpdateProcessor.generateDeployFiles(WSUpdateProcessor.java:284)
                              ... 23 more
                         Caused by: com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException: Webservices common deployment exception! The reason is: Error occurred, trying to parse source type: zip entry, zip file location: E:\usr\sap\SIC\DVEBMGS01\j2ee\cluster\server0\.\temp\deploy\work\deploying\reader1186995503687\TimeoffService.wsar, entry: dsta/timeoff/test/business/TimeoffServiceVI.videf . Additional info:
                              at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseVI(WSDefinitionFactory.java:925)
                              at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseWSDescriptor(WSDefinitionFactory.java:817)
                              ... 26 more
                         Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML Node [VirtualInterface.Functions][http://xml.sap.com/2002/10/metamodel/vi] have minOccurs>0 in schema definition but is missing in node [VirtualInterface][http://xml.sap.com/2002/10/metamodel/vi].
                              at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType._loadInto(GeneratedComplexType.java:1197)
                              at com.sap.engine.services.webservices.jaxrpc.encoding.GeneratedComplexType.deserialize(GeneratedComplexType.java:945)
                              at com.sap.engine.services.webservices.server.deploy.descriptors.vi.VInterfaceParser.getVInterface(VInterfaceParser.java:46)
                              at com.sap.engine.services.webservices.server.deploy.ws.WSDefinitionFactory.parseVI(WSDefinitionFactory.java:920)
                              ... 27 more
                              at com.sap.engine.interfaces.webservices.server.deploy.WSDeploymentException.writeReplace(WSDeploymentException.java:64)
                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:324)
                              at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
                              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
                              at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
                              at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
                              at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
                              at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
                              at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
                              at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:144)
                              at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:322)
                              ... 8 more

    Hi Paul..
       This is a common problem when you are working with webservices, i have worked with them and not always the response of the ws comes like de wsdl says, depends of your wsdl provider.
       I suggest you that checks your response of your webservice with the Enterprise Portal Web Services Checker View
      For see this view in NetWeaver go to Window > Show View > Other > Enterprise Portal Web Services Checker
      Put the wsdl url definition in wsdl url textbox
    and the click in the letter W, this procedure brings you all methods and everything for play with the WEB Services.. and you can check the response of you webservices call funtion, checks that all the tags comes like says in the wsdl
    Good luck
    Joshua

  • Java.rmi.ServerException: Internal Server Error (deserialization error: XML

    I am trying to transmit a document as a byte array to a web service using jax-rpc, and I get the following error:
    2004-05-25 08:04:39,468 exception [Thread-5] - [email protected]33fd java.rmi.ServerException: Internal Server Error (deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:58: Expected "</ns0:receivexmldocument>" to terminate element starting on line 2)
         at com.sun.xml.rpc.client.StreamingSender._raiseFault(StreamingSender.java:370)
         at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:231)
         at com.mobius.cmsl.client.contentindexlistener.ContentWebServiceListenerIF_Stub.receivexmldocument(ContentWebServiceListenerIF_Stub.java:63)
         at com.mobius.cmsl.adapters.convera.client.ContentWebServiceClient.sendxml(ContentWebServiceClient.java:89)
         at com.mobius.cmsl.adapters.convera.client.ContentInterceptor.doGet(ContentInterceptor.java:89)
         at com.mobius.cmsl.adapters.convera.client.ContentInterceptor.doPost(ContentInterceptor.java:110)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
         at java.lang.Thread.run(Thread.java:536)
    The code looks like:
    Client:
    clientStub = (ContentWebServiceListenerIF_Stub)new ContentIndexService_Impl().
    getContentWebServiceListenerIFPort();
    clientStub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, endPoint);
    obj = clientStub.receivexmldocument(cd.externalLink.contents,inxml);
    Web Service:
    public String receivexmldocument(byte docstream[],
    String inxml
    ) throws RemoteException {
    The wsdl looks like:
    <message name="ContentWebServiceListenerIF_receivexmldocument">
    <part name="arrayOfbyte_1" type="xsd:base64Binary"/>
    <part name="String_2" type="xsd:string"/></message>
    <operation name="receivexmldocument" parameterOrder="arrayOfbyte_1 String_2">
    <input message="tns:ContentWebServiceListenerIF_receivexmldocument"/>
    <output message="tns:ContentWebServiceListenerIF_receivexmldocumentResponse"/></operation>
    The documents I am sending do contain special characters like maybe japanese or italian.

    Sounds like the xml you are sending is not well-formed. Please start with simple xml documents to see if it works.

  • XML message as input for webservice gives deserialization error

    Hi,
    jDeveloper 10.1.3
    BPEL PM 10.1.2.0.2
    Carrental example
    Problem:
    For the Business Rule Engine I did the Carrental XML example. Based on the java application that connects to the BR engine, I created a webservice in jDeveloper and deployed it to my localhost AS 10.1.3. The webservice has a testRule method that accepts a String buf as input. For now, the only thing the webservice does is return a 'do nothing' string. This works fine:
    When deployed the testpage generates the following SOAP message:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body xmlns:ns1="http://carrental/types/">
    <ns1:testRuleElement>
    <ns1:buf>my xml message</ns1:buf>
    </ns1:testRuleElement>
    </soap:Body>
    </soap:Envelope>
    The SOAP response is:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns0="http://carrental/types/"><env:Body><ns0:testRuleResponseElement><ns0:result>do nothing...</ns0:result></ns0:testRuleResponseElement></env:Body></env:Envelope>
    In BPEL Designer I create a new asynchronous process ValidateBR, with a partnerlink for the webservice, based on the following WSDL file:
    <definitions
    name="Rent"
    targetNamespace="http://carrental/"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://carrental/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:tns0="http://carrental/types/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    >
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://carrental/types/"
    elementFormDefault="qualified" xmlns:tns="http://carrental/types/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
    <complexType name="testRule">
    <sequence>
    <element name="buf" type="string" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="testRuleResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/>
    </sequence>
    </complexType>
    <complexType name="version">
    <sequence/>
    </complexType>
    <complexType name="versionResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/>
    </sequence>
    </complexType>
    <element name="testRuleElement" type="tns:testRule"/>
    <element name="testRuleResponseElement" type="tns:testRuleResponse"/>
    <element name="versionElement" type="tns:version"/>
    <element name="versionResponseElement" type="tns:versionResponse"/>
    </schema>
    </types>
    <message name="Rent_testRule">
    <part name="parameters" element="tns0:testRuleElement"/>
    </message>
    <message name="Rent_testRuleResponse">
    <part name="parameters" element="tns0:testRuleResponseElement"/>
    </message>
    <message name="Rent_version">
    <part name="parameters" element="tns0:versionElement"/>
    </message>
    <message name="Rent_versionResponse">
    <part name="parameters" element="tns0:versionResponseElement"/>
    </message>
    <portType name="Rent">
    <operation name="testRule">
    <input message="tns:Rent_testRule"/>
    <output message="tns:Rent_testRuleResponse"/>
    </operation>
    <operation name="version">
    <input message="tns:Rent_version"/>
    <output message="tns:Rent_versionResponse"/>
    </operation>
    </portType>
    <binding name="RentSoapHttp" type="tns:Rent">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="testRule">
    <soap:operation soapAction="http://carrental//testRule"/>
    <input>
    <soap:body use="literal" parts="parameters"/>
    </input>
    <output>
    <soap:body use="literal" parts="parameters"/>
    </output>
    </operation>
    <operation name="version">
    <soap:operation soapAction="http://carrental//version"/>
    <input>
    <soap:body use="literal" parts="parameters"/>
    </input>
    <output>
    <soap:body use="literal" parts="parameters"/>
    </output>
    </operation>
    </binding>
    <service name="Rent">
    <port name="RentSoapHttpPort" binding="tns:RentSoapHttp">
    <soap:address location="http://localhost:7780/Rules-rent-context-root/RentSoapHttpPort"/>
    </port>
    </service>
    </definitions>
    I defined the process variable inputVariable to be defined based on the carrental.xsd schema. I assign the inputVariable to the 'buf' parameter of the webservice as shown below in the ValidateBR.bpel
    <!--
    // Oracle JDeveloper BPEL Designer
    // Created: Mon Mar 27 16:02:22 CEST 2006
    // Author: haanrw
    // Purpose: Asynchronous BPEL Process
    -->
    <process name="ValidateBR" targetNamespace="http://xmlns.oracle.com/ValidateBR" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:ns1="http://rules.oracle.com/carrental" xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns3="http://carrental/types/" xmlns:ns2="http://carrental/" xmlns:client="http://xmlns.oracle.com/ValidateBR" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:orcl="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="client:ValidateBR" myRole="ValidateBRProvider" partnerRole="ValidateBRRequester"/>
    <partnerLink name="CheckBR" partnerRole="Rent_Role" partnerLinkType="ns2:Rent_PL"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="inputVariable" messageType="client:ValidateBRRequestMessage"/><!-- Reference to the message that will be sent back to the
    requester during callback
    -->
    <variable name="outputVariable" messageType="client:ValidateBRResponseMessage"/>
    <variable name="InvokeValidateBR_testRule_InputVariable" messageType="ns2:Rent_testRule"/>
    <variable name="InvokeValidateBR_testRule_OutputVariable" messageType="ns2:Rent_testRuleResponse"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in ValidateBR.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="client:ValidateBR" operation="initiate" variable="inputVariable" createInstance="yes"/><!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
    <assign name="Assign_1">
    <copy>
    <from variable="inputVariable" part="payload" query="/ns1:repository"/>
    <to variable="InvokeValidateBR_testRule_InputVariable" part="parameters" query="/ns3:testRuleElement/ns3:buf"/>
    </copy>
    </assign>
    <invoke name="InvokeValidateBR" partnerLink="CheckBR" portType="ns2:Rent" operation="testRule" inputVariable="InvokeValidateBR_testRule_InputVariable" outputVariable="InvokeValidateBR_testRule_OutputVariable"/>
    <invoke name="callbackClient" partnerLink="client" portType="client:ValidateBRCallback" operation="onResult" inputVariable="outputVariable"/>
    </sequence>
    </process>
    When I deploy the process and initiate a testinstance from the BPEL console, the assign looks as follows:
    <InvokeValidateBR_testRule_InputVariable>
    <part name="parameters" >
    <testRuleElement>
    <buf>
    <driver>
    <driver-license-number>15-PS-FZ</driver-license-number>
    <name>Rob de Haan</name>
    <age>39</age>
    <vehicle-type>Saab</vehicle-type>
    <license-type>B</license-type>
    <pre-convictions>0</pre-convictions>
    <pre-accidents>0</pre-accidents>
    <able-to-drive>true</able-to-drive>
    </driver>
    </buf>
    </testRuleElement>
    </part>
    </InvokeValidateBR_testRule_InputVariable>
    The InvokeValidateBR shows the following error:
    <remoteFault>
    <part name="code" >
    <code>Client</code>
    </part>
    <part name="summary" >
    <summary>when invoking endpointAddress 'http://localhost:7780/Rules-rent-context-root/RentSoapHttpPort', caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: START: {http://rules.oracle.com/carrental}driver</summary>
    </part>
    <part name="detail" >
    <detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client faultSubcode: faultString: caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: START: {http://rules.oracle.com/carrental}driver faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: START: {http://rules.oracle.com/carrental}driver at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at org.collaxa.thirdparty.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1083) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.collaxa.thirdparty.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:226) at org.collaxa.thirdparty.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:645) at org.collaxa.thirdparty.apache.axis.Message.getSOAPEnvelope(Message.java:424) at org.collaxa.thirdparty.apache.axis.client.Call.invokeEngine(Call.java:2754) at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:2715) at org.collaxa.thirdparty.apache.axis.client.Call.invoke(Call.java:1737) at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeAXISMessaging(WSIFOperation_ApacheAxis.java:2113) at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.invokeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1611) at com.collaxa.cube.ws.wsif.providers.axis.WSIFOperation_ApacheAxis.executeRequestResponseOperation(WSIFOperation_ApacheAxis.java:1083) at com.collaxa.cube.ws.WSIFInvocationHandler.invoke(WSIFInvocationHandler.java:452) at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:327) at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:189) at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__invoke(BPELInvokeWMP.java:601) at com.collaxa.cube.engine.ext.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:317) at com.collaxa.cube.engine.ext.wmp.BPELActivityWMP.perform(BPELActivityWMP.java:188) at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:3408) at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1836) at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:75) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:166) at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:252) at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:5438) at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:1217) at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:511) at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335) at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.java:1796) at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37) at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125) at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70) at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86) at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123) at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755) at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Thread.java:534) {http://xml.apache.org/axis/}hostname:NL-GRH-L120981 </detail>
    </part>
    </remoteFault>
    FYI: the webservice only contains a return "do nothing"
    Question:
    What is the proper way to assign an XML message to the web service?
    Any help would be appreciated.
    Rob
    Message was edited by:
    [email protected]

    Hi,
    Reading only is not possible..
    I will be still more clear in my question this time..
    I have deployed my bpel. My receiveInputVariable is of type xsd:string.
    So when i run the bpel in my console, i will be asked to give input as string data.
    So when i go to the XMLView, it will be like this.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         <soap:Body xmlns:ns1="http://xmlns.oracle.com/Sabari_POC_Appln/DOM_Parser/ConvertToBLOB">
              <ns1:process>
                   <ns1:input></ns1:input>
    </ns1:process>
    </soap:Body>
    </soap:Envelope>
    Now, i am going to give my input like this. --- which leads to error.
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         <soap:Body xmlns:ns1="http://xmlns.oracle.com/Sabari_POC_Appln/DOM_Parser/ConvertToBLOB">
              <ns1:process>
                   <ns1:input>
    *<?xml version="1.0" encoding="UTF-8"?>*
    *<projects>*
    *<project id = "BP001">*
    *<name>Banking Project</name>*
    *<start-date>Jan 10 1999</start-date>*
    *<end-date>Jan 10 2003</end-date>*
    *</project>*
    *<project id = "TP001">*
    *<name>Telecommunication Project</name>*
    *<start-date>March 20 1999</start-date>*
    *<end-date>July 30 2004</end-date>*
    *</project>*
    *<project id = "PP001">*
    *<name>Portal Project</name>*
    *<start-date>Dec 10 1998</start-date>*
    *<end-date>March 10 2006</end-date>*
    *</project>*
    *</projects>*
    </ns1:input>
    </ns1:process>
    </soap:Body>
    </soap:Envelope>
    This xml is not accepted as string input.. so kindly suggest me some other solution.
    I also tried.. like.. making my receiveInputVariable of type xsd:anyType, it also dint help. same error occurred.
    Thanks,
    Sabarisri. N
    Edited by: Sabarisri N on Jul 20, 2011 1:03 PM

  • Deserialization error: XML reader error: unexpected character content:

    Hi,
    I'm just learning to write web services. I pasted the service and it seems to work.
    It's code is :
    package server;
    import javax.jws.WebService;
    public class HelloImpl {
       * @param name
       * @return Say hello to the person.
       public String sayHello(String name) {
         return "Hello, " + name + "!";
    }I wired the service using spring, following the tutorial :
    public class HellowsImpl {
        String name;
        public HellowsImpl() {
        private Hellows service;
        public void setService(Hellows service) {
            this.service = service;
        public void sayHi() {
            try {
                service.sayHello(name);
            } catch (RemoteException e) {
                // TODO
        public Hellows getService() {
            return service;
        public void setName(String name) {
            this.name = name;
    }But when I try this :     HellowsImpl service ;
        service=(HellowsImpl)ac.getBean("hellowsclient");
    service.sayHi();I get the exception : Caught exception while handling request: deserialization error: XML reader error: unexpected character content: "fd"
    Where might be the problem?

    Hi, I am also facing this error while trying to create "Dynamic Proxy Client"
    I am accessing the WS method like this
    String UrlString = "http://localhost:1559/DynamicProxy/DProxy?WSDL";
    String nameSpace = "urn:DProxy/wsdl";
    String serviceName = "DProxy";
    String port = "DProxySEIPort";
    URL serviceUrl = new URL(UrlString);
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    Service service = serviceFactory.createService(serviceUrl,new QName(nameSpace,serviceName));
    dproxy.DProxySEI myProxy = (dproxy.DProxySEI)service.getPort(new QName(nameSpace,port),dproxy.DProxySEI.class);
    String message = myProxy.sayHello("rajeev");
    WSDL File content :
    <?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="urn:DProxy/wsdl" xmlns:ns2="urn:DProxy/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="DProxy" targetNamespace="urn:DProxy/wsdl">
    <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:DProxy/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="urn:DProxy/types">
    <complexType name="sayHello">
    <sequence>
    <element name="String_1" type="string" nillable="true"/></sequence></complexType>
    <complexType name="sayHelloResponse">
    <sequence>
    <element name="result" type="string" nillable="true"/></sequence></complexType>
    <element name="sayHello" type="tns:sayHello"/>
    <element name="sayHelloResponse" type="tns:sayHelloResponse"/></schema></types>
    <message name="DProxySEI_sayHello">
    <part name="parameters" element="ns2:sayHello"/></message>
    <message name="DProxySEI_sayHelloResponse">
    <part name="result" element="ns2:sayHelloResponse"/></message>
    <portType name="DProxySEI">
    <operation name="sayHello">
    <input message="tns:DProxySEI_sayHello"/>
    <output message="tns:DProxySEI_sayHelloResponse"/></operation></portType>
    <binding name="DProxySEIBinding" type="tns:DProxySEI">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="sayHello">
    <soap:operation soapAction=""/>
    <input>
    <soap:body use="literal"/></input>
    <output>
    <soap:body use="literal"/></output></operation></binding>
    <service name="DProxy">
    <port name="DProxySEIPort" binding="tns:DProxySEIBinding">
    <soap:address location="http://localhost:1559/DynamicProxy/DProxy" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/></port></service></definitions>
    and Here is my SEI Implementation class
    public java.lang.String sayHello(String name) throws java.rmi.RemoteException {
    String message = "hi.."+name+"..How r u";
    return message;
    Can any one help me plz...
    Thanks in advance..

  • Error while XML deserialization using ST

    Hi Experts,
    I am generating a fancy XML Spreadsheet using Simple Transformation and then trying to read it back using the same ST (deserialization).
    While doing so, I am receiving following runtime error:
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_ST_MATCH_ELEMENT', was not caught and therefore
    caused a runtime error.
        The reason for the exception is: XML matching error
        Expected was element-start: "Workbook" [urn:schemas-microsoft-com:office:spreadsheet]
        Read was document-end: " " [ ].
    Althought, the XML contains the same line at line #3 below:
    <?xml version="1.0"?>
    <?mso-application progid="Excel.Sheet"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:o="urn:schemas-microsoft-com:office:office"
    xmlns:x="urn:schemas-microsoft-com:office:excel"
    xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
    xmlns:html="http://www.w3.org/TR/REC-html40">
    <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Created>2009-05-18T05:28:50Z</Created>
      <LastSaved>2009-05-18T05:28:50Z</LastSaved>
      <Version>11.9999</Version>
    </DocumentProperties>
    <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
    I tried aligning the text / transformation in various ways with no success.
    Any clues to tackle this?

    Not required anymore, closing the thread.

  • Deserialization error: XML parsing error: Illegal XML character

    Hi All,
    Anybody knows what caused this? This error occured at the client side when the server returned an object that contains other objects to client during a jaxrpc call. It worked before, something is definitely changed, I reversed my changes but still the same.
    Please help, thanx a lot.
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at com.ummq.ME_Stub.getMsg(MsgExpertIF_Stub.java:1333)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] before getMsg
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 30 more
    [java] java.rmi.RemoteException: Runtime exception; nested exception is:
    [java] deserialization error: deserialization error: deserialization error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:234)
    [java] at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
    [java] at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
    [java] at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
    [java] at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    [java] at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:88)
    [java] at javax.swing.JComboBox.setSelectedItem(JComboBox.java:551)
    [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
    [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerforme
    d(AbstractButton.java:1817)
    [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    [java] at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1109)
    [java] at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mous
    eReleased(BasicMenuItemUI.java:943)
    [java] at java.awt.Component.processMouseEvent(Component.java:5093)
    [java] at java.awt.Component.processEvent(Component.java:4890)
    [java] at java.awt.Container.processEvent(Container.java:1566)
    [java] at java.awt.Component.dispatchEventImpl(Component.java:3598)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1623)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
    [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
    [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
    [java] at java.awt.Container.dispatchEventImpl(Container.java:1609)
    [java] at java.awt.Window.dispatchEventImpl(Window.java:1585)
    [java] at java.awt.Component.dispatchEvent(Component.java:3439)
    [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
    [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    [java] Caused by: deserialization error: deserialization error: deserializa
    tion error: XML parsing error: com.sun.xml.rpc.sp.ParseException:2: Illegal XML character:
    [java] at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deseriali
    zeMultiRefObjects(SOAPDeserializationContext.java:65)
    [java] at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:175)
    [java] ... 39 more

    What type of encoding are you using? Do you transform a string in an array of bytes or viceversa?
    Marco

Maybe you are looking for