cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a webservice (AXIS) from webdynpro

Former Member
0 Kudos

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>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

former_member85655
Active Participant
0 Kudos

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

suresh_krishnamoorthy
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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>