If I'm assuming the right thing. Your requirement is about sending a XML as an String through a Web Service.

So what you are doing is something like this:

<soap:envelope>
    <soap:body>
        <myMethod>
            <myString>Some XML with scaped characters</myString>
        </myMethod>
    </soap:body>
</soap:envelope>

The CDATA tag is helping to scape your XML so the parsers don't mix it with your SOAP evelope.

The namespace should be already working fine since your stub was created based on the WSDL but if you still want to change it you can take a look to this: http://wso2.org/library/2060

Now my question would be... are you receiving any error?


-Pablo Melchi
pablo-melchi.blogspot.com


Mohan Radhakrishnan wrote:

 What is the difference ? My WSDL requires me to pass a string parameter. I
generated XMLBeans bindings and Axis2 stubs.

  There is a setter method generated and I set the XML that I want to pass.
What is the rule in this case ? Should I set it as a child or let it pass
the CDATA ?

My second questions is about the targetnamespaceprefix that is automatically
generated ? I think it is. Can I set my own prefix ?


Thanks,
Mohan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to