on 06-29-2006 2:08 PM
Hi Guys - I am getting the following error for some reason while making a call to a webservice developed in AXIS, Although I have checked the communication on wire it looked OK. Any ideas would be greatly appreciated.
<b>Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error. XML is not valid. Element [http://session.services.enterprise.mclarensoftware.com]<successful> is required in <createSessionReturn> but can not be found.</b>
Hi Fahad!
Did you get your problem solved right now?
Because I am having the same problem and I don't know how to solve it.
Best regards, Patrick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Patrik,
If you are using Complex types then you need to define Bean classes for those and have them registered as mappings to the Axis call. So the SOAP Response XML is De-serilaized to produce instances of these classes and the values are set corresponding to the SOAP XML. Have you done the de-serialization. The bean structure should correspond to your response XML Structrue too..
Regards,
Arun
First Check the web service whether its working in web service navigator.
Deserialization Error because web service signature change:
Once you generated the Webdynpro model from web service you should not change the web service signature
if you change the web service signature you will get this exception
com.sap.engine.services.webservices.jaxrpc.exceptions.XmlUnmarshalException: XML Deserialization Error.
To solve this you have to re generated the webdynpro model again with latest web service.
I hope this will solve
Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh, thanks for the reply the webservice is working fine and as I said I can see the communication on wire and it looks perfectly all right, and I havent changed its signature either.
Now I can't see the webservice in the navigator but when I type the url http://blablabla:50100/myservice?WSDL i can see my WSDL so its obviously working.
I can see these tags <successful>true<successful>
in my <createSessionRertun> tag. but if you look at the error is says
<b>Element [http://session.services.enterprise.mclarensoftware.com]<successful></b> is required in <createSessionReturn>
so may be I think its because of "[http://session.services.enterprise.mclarensoftware.com]" some kind of namespace issue or something?
Please advise.
I tried testing it with the Webservice navigator, and getting the same error,
XML Deserialization Error. XML is not valid. Element [http://session.services.enterprise.mclarensoftware.com] is required in but can not be found.
however
request:
POST /mclaren/services/session HTTP/1.1
Host: localhost:50100
Content-Type: text/xml; charset=UTF-8
Connection: close
Cookie: <value is hidden>
Cookie: <value is hidden>
Content-Length: 696
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><pns:createSession xmlns:pns='http://session.services.enterprise.mclarensoftware.com'><pns:strTechnologyID>filenet</pns:strTechnologyID><pns:strConnection>http://mclglaweb006:8008/ApplicationEngine/xcmisasoap.dll</pns:strConnection><pns:strConnectionFriendlyName> </pns:strConnectionFriendlyName><pns:strUserName>davidp</pns:strUserName><pns:strPassword>nimbus</pns:strPassword><pns:strDomain> </pns:strDomain></pns:createSession></SOAP-ENV:Body></SOAP-ENV:Envelope>
response:
HTTP/1.1 200 OK
Connection: close
Server: SAP J2EE Engine/7.00
Content-Type: text/xml; charset=utf-8
Date: Thu, 29 Jun 2006 14:15:50 GMT
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><createSessionResponse xmlns="http://session.services.enterprise.mclarensoftware.com"><createSessionReturn><code>0</code><detail xsi:nil="true"/><message xsi:nil="true"/><sessionID>filenet;http://mclglaweb006:8008/ApplicationEngine/xcmisasoap.dll;davidp; </sessionID><successful>true</successful>
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.