By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,432 Members | 790 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,432 IT Pros & Developers. It's quick & easy.

SAP web service and .Net standalone client issue

P: n/a
Hi all,

I have created an web service on SAP system. I have created a .net client
using Micrsoft Visual Studio 2003 and .net frame work 2.0. in Visual Basic.
In that .net client i have created web refrence for the web service.

When i call the web service without using WSE 2.0 API i get following SOAP
Fault message from the web service.
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>DOMException</code>
<text><![CDATA[
org.w3c.dom.DOMException: QName is 'xmlns', but URI is not
'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns'
at com.sap.engine.lib.xml.dom.AttrImpl.checkQualifedN ame(AttrImpl.java:86)
at com.sap.engine.lib.xml.dom.AttrImpl.init(AttrImpl. java:95)
at com.sap.engine.lib.xml.dom.AttrImpl.init(AttrImpl. java:145)
at
com.sap.engine.lib.xml.dom.ElementImpl.setAttribut eNS(ElementImpl.java:287)
at com.sap.aii.messaging.mo.DefaultItem.readAttribute s(DefaultItem.java:99)
at
com.sap.aii.messaging.util.XMLMarshallableObject.u nmarshal(XMLMarshallableObject.java:193)
at com.sap.aii.messaging.mo.DefaultItem.unmarshal(Def aultItem.java:230)
at com.sap.aii.messaging.mo.Message.reparseRootDocume nt(Message.java:993)
at
com.sap.aii.messaging.net.MIMEInputSource.readSOAP Part(MIMEInputSource.java:598)
at
com.sap.aii.messaging.net.MIMEInputSource.decodePa rt(MIMEInputSource.java:590)
at
com.sap.aii.messaging.net.MIMEInputSource.readBody (MIMEInputSource.java:358)
at
com.sap.aii.messaging.net.MIMEServletInputSource.p arse(MIMEServletInputSource.java:58)
at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(M essageServlet.java:359)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at
com.sap.engine.services.servlets_jsp.server.HttpHa ndlerImpl.runServlet(HttpHandlerImpl.java:390)
at
com.sap.engine.services.servlets_jsp.server.HttpHa ndlerImpl.handleRequest(HttpHandlerImpl.java:264)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.startServlet(RequestAnalizer.java:347)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.startServlet(RequestAnalizer.java:325)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.invokeWebContainer(RequestAnalizer.java:88 7)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.h andle(Client.java:92)
at
com.sap.engine.services.httpserver.server.Processo r.request(Processor.java:148)
at
com.sap.engine.core.service630.context.cluster.ses sion.ApplicationSessionMessageListener.process(App licationSessionMessageListener.java:33)
at
com.sap.engine.core.cluster.impl6.session.MessageR unner.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.exec ute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run( SingleThread.java:160)
]]></text>
</s:SystemError>


and when i tried using WSE 2.0 API, i got following error in the SOAP Fault
message

<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>MalformedMessageException</code>
<text><![CDATA[
expecting end tag:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security,
but found
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp at state 1; nested exception caused by:
com.sap.aii.messaging.util.XMLScanException: expecting end tag:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security,
but found
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp at state 1
at
com.sap.aii.messaging.util.XMLMarshallableObject.u nmarshal(XMLMarshallableObject.java:201)
at com.sap.aii.messaging.mo.Message.reparseRootDocume nt(Message.java:934)
at
com.sap.aii.messaging.net.MIMEInputSource.readSOAP Part(MIMEInputSource.java:598)
at
com.sap.aii.messaging.net.MIMEInputSource.decodePa rt(MIMEInputSource.java:590)
at
com.sap.aii.messaging.net.MIMEInputSource.readBody (MIMEInputSource.java:358)
at
com.sap.aii.messaging.net.MIMEServletInputSource.p arse(MIMEServletInputSource.java:58)
at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(M essageServlet.java:359)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:853)
at
com.sap.engine.services.servlets_jsp.server.HttpHa ndlerImpl.runServlet(HttpHandlerImpl.java:390)
at
com.sap.engine.services.servlets_jsp.server.HttpHa ndlerImpl.handleRequest(HttpHandlerImpl.java:264)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.startServlet(RequestAnalizer.java:347)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.startServlet(RequestAnalizer.java:325)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.invokeWebContainer(RequestAnalizer.java:88 7)
at
com.sap.engine.services.httpserver.server.RequestA nalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.h andle(Client.java:92)
at
com.sap.engine.services.httpserver.server.Processo r.request(Processor.java:148)
at
com.sap.engine.core.service630.context.cluster.ses sion.ApplicationSessionMessageListener.process(App licationSessionMessageListener.java:33)
at
com.sap.engine.core.cluster.impl6.session.MessageR unner.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.exec ute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run( SingleThread.java:160)
]]></text>
</s:SystemError>

Jan 9 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.