473,569 Members | 2,526 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SAP web service and .Net standalone client issue

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:SystemErro r xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdap ter</context>
<code>DOMExcept ion</code>
<text><![CDATA[
org.w3c.dom.DOM Exception: 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.Att rImpl.checkQual ifedName(AttrIm pl.java:86)
at com.sap.engine. lib.xml.dom.Att rImpl.init(Attr Impl.java:95)
at com.sap.engine. lib.xml.dom.Att rImpl.init(Attr Impl.java:145)
at
com.sap.engine. lib.xml.dom.Ele mentImpl.setAtt ributeNS(Elemen tImpl.java:287)
at com.sap.aii.mes saging.mo.Defau ltItem.readAttr ibutes(DefaultI tem.java:99)
at
com.sap.aii.mes saging.util.XML MarshallableObj ect.unmarshal(X MLMarshallableO bject.java:193)
at com.sap.aii.mes saging.mo.Defau ltItem.unmarsha l(DefaultItem.j ava:230)
at com.sap.aii.mes saging.mo.Messa ge.reparseRootD ocument(Message .java:993)
at
com.sap.aii.mes saging.net.MIME InputSource.rea dSOAPPart(MIMEI nputSource.java :598)
at
com.sap.aii.mes saging.net.MIME InputSource.dec odePart(MIMEInp utSource.java:5 90)
at
com.sap.aii.mes saging.net.MIME InputSource.rea dBody(MIMEInput Source.java:358 )
at
com.sap.aii.mes saging.net.MIME ServletInputSou rce.parse(MIMES ervletInputSour ce.java:58)
at com.sap.aii.af. mp.soap.web.Mes sageServlet.doP ost(MessageServ let.java:359)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:760)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:853)
at
com.sap.engine. services.servle ts_jsp.server.H ttpHandlerImpl. runServlet(Http HandlerImpl.jav a:390)
at
com.sap.engine. services.servle ts_jsp.server.H ttpHandlerImpl. handleRequest(H ttpHandlerImpl. java:264)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.st artServlet(Requ estAnalizer.jav a:347)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.st artServlet(Requ estAnalizer.jav a:325)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.in vokeWebContaine r(RequestAnaliz er.java:887)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.ha ndle(RequestAna lizer.java:241)
at com.sap.engine. services.httpse rver.server.Cli ent.handle(Clie nt.java:92)
at
com.sap.engine. services.httpse rver.server.Pro cessor.request( Processor.java: 148)
at
com.sap.engine. core.service630 .context.cluste r.session.Appli cationSessionMe ssageListener.p rocess(Applicat ionSessionMessa geListener.java :33)
at
com.sap.engine. core.cluster.im pl6.session.Mes sageRunner.run( MessageRunner.j ava:41)
at com.sap.engine. core.thread.imp l3.ActionObject .run(ActionObje ct.java:37)
at java.security.A ccessController .doPrivileged(N ative Method)
at
com.sap.engine. core.thread.imp l3.SingleThread .execute(Single Thread.java:95)
at com.sap.engine. core.thread.imp l3.SingleThread .run(SingleThre ad.java:160)
]]></text>
</s:SystemError>


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

<s:SystemErro r xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdap ter</context>
<code>Malformed MessageExceptio n</code>
<text><![CDATA[
expecting end tag:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Securit y,
but found
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timesta mp at state 1; nested exception caused by:
com.sap.aii.mes saging.util.XML ScanException: expecting end tag:
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Securit y,
but found
{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timesta mp at state 1
at
com.sap.aii.mes saging.util.XML MarshallableObj ect.unmarshal(X MLMarshallableO bject.java:201)
at com.sap.aii.mes saging.mo.Messa ge.reparseRootD ocument(Message .java:934)
at
com.sap.aii.mes saging.net.MIME InputSource.rea dSOAPPart(MIMEI nputSource.java :598)
at
com.sap.aii.mes saging.net.MIME InputSource.dec odePart(MIMEInp utSource.java:5 90)
at
com.sap.aii.mes saging.net.MIME InputSource.rea dBody(MIMEInput Source.java:358 )
at
com.sap.aii.mes saging.net.MIME ServletInputSou rce.parse(MIMES ervletInputSour ce.java:58)
at com.sap.aii.af. mp.soap.web.Mes sageServlet.doP ost(MessageServ let.java:359)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:760)
at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:853)
at
com.sap.engine. services.servle ts_jsp.server.H ttpHandlerImpl. runServlet(Http HandlerImpl.jav a:390)
at
com.sap.engine. services.servle ts_jsp.server.H ttpHandlerImpl. handleRequest(H ttpHandlerImpl. java:264)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.st artServlet(Requ estAnalizer.jav a:347)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.st artServlet(Requ estAnalizer.jav a:325)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.in vokeWebContaine r(RequestAnaliz er.java:887)
at
com.sap.engine. services.httpse rver.server.Req uestAnalizer.ha ndle(RequestAna lizer.java:241)
at com.sap.engine. services.httpse rver.server.Cli ent.handle(Clie nt.java:92)
at
com.sap.engine. services.httpse rver.server.Pro cessor.request( Processor.java: 148)
at
com.sap.engine. core.service630 .context.cluste r.session.Appli cationSessionMe ssageListener.p rocess(Applicat ionSessionMessa geListener.java :33)
at
com.sap.engine. core.cluster.im pl6.session.Mes sageRunner.run( MessageRunner.j ava:41)
at com.sap.engine. core.thread.imp l3.ActionObject .run(ActionObje ct.java:37)
at java.security.A ccessController .doPrivileged(N ative Method)
at
com.sap.engine. core.thread.imp l3.SingleThread .execute(Single Thread.java:95)
at com.sap.engine. core.thread.imp l3.SingleThread .run(SingleThre ad.java:160)
]]></text>
</s:SystemError>

Jan 9 '06 #1
0 4337

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1573
by: Stephan Lux | last post by:
Hi all, I have developed a windows service with Visual Basic .NET which starts a file conversion tool via the commandline. The tool open the files (z.B. Word, Excel, Acrobat...) and prints them over an image printer driver to tiff-files. On my Windows XP client it works fine, but on the target system (Windows 2003 Server) some issues...
6
4657
by: FS Liu | last post by:
Hi, In my current ATL server project, I have to parse the input in the client application's request to find out the different combination of parameters, instead of using SOAP. For this reason, I am not using ATL server web service project. On client side, I use POST to send XML to web server. I know I should use ISAXXMLReader in the...
7
7091
by: David Laub | last post by:
I've also posted this issue to a Sun/java formum, but since it appears to be an integration issue, this may be the better place to posr: I have written a dot net/c# Web Services doesn't fully work with J2ME client a) c# web service works with c# WIndows Client (local & remote web service) b) c# web service works with J2ME client - when the...
2
1355
by: Sam | last post by:
Hello all, I have a requirement to to return a XML response for incoming posts to my webservice. In addition, I can not write out to a file. I must process this in memory. The XML response must be as follows <xml version='1.0' standalone='no'?><!DOCTYPE SMSRESPONSE SYSTEM 'response_generic_v1.dtd'> <SMSRESPONSE>...
8
55672
by: Kevin D. | last post by:
Please note, I already posted this on the MySQL official forum, but received no response. I thought I'd try again in another location. My apologies to anyone reading this twice... Despite everything I've tried, I cannot get MySQL to start as a Windows service. However, I AM able to get it started via the mysqld-nt --console command. Here...
2
1058
by: ghause | last post by:
I am writing what is essentially a facade layer for service consumption. I don't want this facade to be part of my web application, it needs to be a standalone dll. This facade will contain all of my web references and public methods exposing them to my web app. In addition to calling the web services asynchronously is there anything I can...
1
2597
by: greenzrx | last post by:
I have the following snippet of code which works both as a standalone application and as when incorporated to a windows service. There seems to be a slight difference between the service and the standalone app however. We have a legacy VB app which uses ADSI to apply file permissions. I have no access to the legacy app, and development has...
41
11611
by: pbd22 | last post by:
Hi. I know my windows service works when i run it in debug mode on my dev machine. It also works in release mode on my dev machine. But, when I move the service to a production server, it exits immediately with a start/stop/nothing to do error. What could be wrong?
2
5548
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the serialization settings for the build handled the initial slows we encountered when invoking the web service. Since that time, we ported the original VB.net...
0
7924
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8125
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3642
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1221
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.