Accessing SAP WAS via SOAP / xml-namespace problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: stefan (tassilostefan_at_web.de)
Date: 05/13/04


Date: 13 May 2004 06:08:45 -0700

hello everybody,

I want to call a method on a SAP WAS. For testing purposes, I do have
the same method on two WASs. One of them has been updated recently.
The wsdl-files of both are not identical from a text point of view,
however, from the xml-point of view they are (one declares all types
inline, the other by type-attributes and subsequent definition). so,
no wonder at all, both of them result in identical c#-proxyclasses
after applying the wsdl.exe.

the problem is, it works fine with one server, i.e. after calling
'invoke' in the proxyclass, I get an object arry with two non-null
elements, as expected. after calling the 2nd server the results array
has two elements as well - but both are null.
the only difference is the namespace handling in the two returned
soap-response documents, respectively.

it works if the response handles the response-namespaces without
prefix:
[...]
<Service.Response xmlns="urn:sap-com:document:sap:rfc:functions">
[...]

it fails, if the Service.Response-element looks like this:
[...]
<rfc:Service.Response
xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
[...]

which is, IMHO, pretty strange as both cases should be similar from an
xml-point of view (no other namespaces are declared in the child
elements, and there are no siblings to this response element, so there
is no reason for a namespace-confusion here...).

does anyone have an idea why this happens? to me, this looks like a
bug in the machinery behind this invoke (WebServices.dll or
something...).
and, regardless wether you have an idea why, maybe one of you has a
solution to this problem (I do want to work without explicitly
generating and sending soap-messages - I thought it'd be soo cool with
wsdl and this stuff...).

thanks for reading and thinking...

stefan



Relevant Pages

  • Re: Trigger-happy Met Armed Cops still havent learned to stop behaving like armed thugs
    ... You are making up excuses for inexcusable behaviour ... >>The classic response of the bully, as soon as the argument is going ... >>them resort to name calling. ... I suspect inevitable, both for her safety and that of the officers involved. ...
    (uk.legal)
  • Re: App "Freezes" when getting atom feed
    ... Are you doing this in response to a UI event, ... The method will then invoke the delegate passed in and then ... the content of those blogs using Atomizer. ... Atom atom = Atom.Create, generator, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: MS Society and Cannabis
    ... As I said in my initial response to you, ... an opinion and is entitled to it and to express it, ... And I wouldn't go calling our Dory out... ... I merely commented on a post Donn made and I agreed with. ...
    (alt.support.mult-sclerosis)
  • Re: PC freeze when printing ppt from VB
    ... Before calling that procedure i set the default printer to the ... Anyway thaks again for your response. ... > up a dialog box requesting the filename; this might be hidden behind another ... > Steve Rindsberg, PPT MVP ...
    (microsoft.public.powerpoint)
  • Re: .Net client connecting to Axis 1.2.RC2 Web Service
    ... it's probably a namespace problem. ... This is quite an urgent request... ... The SOAP messages (Request AND Response) are fine and executing the request ...
    (microsoft.public.dotnet.framework.aspnet.webservices)