Hi @all, 

I try to use a web service with monodroid and there is a strange problem ... 

First of all I used the same web service with a winforms application. I
added a tracing option and the Header of the request is looking like this: 
        <soap:Header>
                <q1:SessionInfo id="h_id1"
xmlns:q1="http://sdk.axeda.com/webservices/type";>
                        <User xsi:type="xsd:string">duss</User>
                        <Password xsi:type="xsd:string">123456</Password>
                        <sessionID xsi:type="xsd:string" />
                </q1:SessionInfo>
        </soap:Header>

If I use the same web service in the same way in MonoDroid I get a header
like this: 
        <soap:Header>
*               <SessionInfo href="#id1" />*
                <q1:SessionInfo id="id1" xsi:type="q1:SessionInfo"
xmlns:q1="http://sdk.axeda.com/webservices/type";>
                        <User xsi:type="xsd:string">du</User>
                        <Password xsi:type="xsd:string">0Sindbad,</Password>
                        <sessionID xsi:type="xsd:string" />
                </q1:SessionInfo>
        </soap:Header>

As you can see there is an additionally entry for the SessionInfo. 

This entry causes the web service to fail . If I use the XML Request, remove
that line and test it with SoapUI all is working fine. 

So how can I remove this line from my code? I think it´s not a good way to
patch the XML header. 
Is there any Setting I can / must use in oder to get the same behaviour as
in the windows application? 

Best regards
  Dominik Schmidt

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/Bad-SOAP-header-while-using-SessionInfo-for-Authorization-tp4794883p4794883.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to