-
1. Re: Consuming web service -Java Client vs soap ui
omatzura Oct 19, 2006 3:26 PM (in response to g_nagesh)Hi!
that message looks strange to me.. could you please try to instead import your webservices' WSDL into soapui and submit one of its generated requests?
regards!
/Ole -
2. Re: Consuming web service -Java Client vs soap ui
g_nagesh Oct 19, 2006 11:09 PM (in response to g_nagesh)Sorry for not formatting the question correctly.
Please find the request below. I would like to send xml document as string.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://document.test.nagesh/types">
<soapenv:Body>
<typ:create>
<typ:String_1><abc:CustomerData
xmlns:twc="http://document.test.nagesh/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://document.test.nagesh/types
es-request-schema.xsd">
<Header1>
<Context1>Request</Context1>
<Action1>Create</Action1>
<Source1>board</Source1>
</Header1>
<Customer1>
<ID1 localname="CustomerID1">sholmes023</ID1>
<Account1>
<ID1 localname="AccountID1">234561</ID1>
<Division1>austin</Division1>
</Account1>
<Role1>Account Administrator</Role1>
<Email1>sholmes@yahoo.com</Email1>
<FirstName1>Sherlock</FirstName1>
<MiddleName1>Q</MiddleName1>
<LastName1>Holmes</LastName1>
<Status1>Status</Status1>
</Customer1>
</abc:CustomerData>
</typ:String_1>
</typ:create>
</soapenv:Body>
</soapenv:Envelope>
I am able to consume the same web service using java client with generated stubs without any issues, why soap ui is throwing exception? One cold fusion guy try to consume my web service and he got the same exception (SimpleDeserializer encountered a child element, which is NOT expected) so I am trying to simulate the problem. -
3. Re: Consuming web service -Java Client vs soap ui
omatzura Oct 20, 2006 1:46 AM (in response to g_nagesh)Hi!
ok.. then you should probably wrap the content of String_1 in <![CDATA[ ... ]]> ie
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://document.test.nagesh/types">
<soapenv:Body>
<typ:create>
<typ:String_1><![CDATA[<abc:CustomerData
xmlns:twc="http://document.test.nagesh/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://document.test.nagesh/types
es-request-schema.xsd">
<Header1>
<Context1>Request</Context1>
<Action1>Create</Action1>
<Source1>board</Source1>
</Header1>
<Customer1>
<ID1 localname="CustomerID1">sholmes023</ID1>
<Account1>
<ID1 localname="AccountID1">234561</ID1>
<Division1>austin</Division1>
</Account1>
<Role1>Account Administrator</Role1>
<Email1>sholmes@yahoo.com</Email1>
<FirstName1>Sherlock</FirstName1>
<MiddleName1>Q</MiddleName1>
<LastName1>Holmes</LastName1>
<Status1>Status</Status1>
</Customer1>
</abc:CustomerData>]]>
</typ:String_1>
</typ:create>
</soapenv:Body>
</soapenv:Envelope>
hope this helps!
/Ole -
4. Re: Consuming web service -Java Client vs soap ui
g_nagesh Oct 20, 2006 9:27 AM (in response to g_nagesh)Thank you. Its working.