Hi,

I am invoking an Java soap web service.

Using the wsdl provided, I have created the proxy. There is a differber in the soap message that is being generated for the request, and what the web service actually expects.

Here is the message that web service expects.
<ns:Request xmlns:ns="co.mer.pub">
<Elem1>1</Elem1>
<Elem2>789</Elem2>
<Elem3>22:22:33</Elem3>
</ns:Request>

This is what is being generated by the proxy class.
<Request xmlns="co.mer.pub">
<Elem1>1</Elem1>
<Elem2>789</Elem2>
<Elem3>22:22:33</Elem3>
</Request>

or

I am able to generate a Request message like:

<ns:Request xmlns:ns="co.mer.pub">
<ns:Elem1>1</Elem1>
<ns:Elem2>789</Elem2>
<ns:Elem3>22:22:33</Elem3>
</ns:Request>

As a result of this the result I am getting is null.

What i see that some how if we can qulify the "request" class which is used in the proxy class to generate the same out put when it is being serialized.


[XmlType(Namespace = "co.mer.pub")]

public partial class Request {


private string Elem1;


private string Elem2;


private string Elem3;

}

My question 1:
Is this message valid.
<ns:Request xmlns:ns="co.mer.pub">
<Elem1>1</Elem1>
<Elem2>789</Elem2>
<Elem3>22:22:33</Elem3>
</ns:Request>

2. If yes how can we generate the above message after selializing so that I can manually change the proxy class so that I can have the same request.


Thanks,