Finally, I am able to construct the request and got the right
response. The request has been constructed by chaining the Element
classes each other.
As far I understand, there is one more approach - using the class
mapping, for example - to create the class which contents all stuff of
<eb:MessageHeader> element and then to map the java class into
request's envelope.

Could any body show me how to do that.

Thanks in advance.

On Jun 28, 9:10 pm, YNC <[email protected]> wrote:
> Could anybody help me with creating the request to a web service using
> the ksoap2 framework.
> For example, I need to make the following request:
>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:eb="http://www.ebxml.org/namespaces/messageHeader";
> xmlns:xlink="http://www.w3.org/1999/xlink"; 
> xmlns:xsd="http://www.w3.org/1999/XMLSchema";>
>    <SOAP-ENV:Header>
>       <eb:MessageHeader eb:version="1.0">
>          <eb:ConversationId>TEST_ID</eb:ConversationId>
>          <eb:From>
>             <eb:PartyId>TEST</eb:PartyId>
>          </eb:From>
>          <eb:To>
>             <eb:PartyId>Gateway</eb:PartyId>
>          </eb:To>
>          <eb:Service eb:type="OOO">SCreateRQ</eb:Service>
>          <eb:Action>SCreateRQ</eb:Action>
>       </eb:MessageHeader>
>       <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/
> secext" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/12/utility";>
>          <wsse:UsernameToken>
>             <wsse:Username>Username</wsse:Username>
>             <wsse:Password>Password</wsse:Password>
>             <Organization>Host</Organization>
>          </wsse:UsernameToken>
>       </wsse:Security>
>    </SOAP-ENV:Header>
>    <SOAP-ENV:Body/>
> </SOAP-ENV:Envelope>
>
> What the right approach for the name space's description and class
> mapping?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to