D
Dimitrio
I have a problem accessing a web service with Apache Axis.
The response from the web service indicates that there is an
"unexpected #text element" in the XML request.
If figured that the web service doesn't seem to accept whitespace
inside the SOAP method element. For example:
<soap:Envelope ...>
....
<soap:Body ...>
<someMethod xmlns="http://some.company.com/web/service">
<SomeParam>Some Value</SomeParam>
</someMethod>
</soap:Body>
</soap:Envelope>
This results in the above mentioned error response from the service.
However, once all the whitespace inside the someMethod element is
removed, the service works fine (verified by opening a URL connection
and writing the XML).
BTW, the service works OK if there is whitespace in other places of the
request. It only fails with whitespace in the method call element.
In this regard, some questions:
1. Have anybody ever enciuntered this kind of problem?
2. Is there a way to disable XML request formatting in Axis?
3. Does it have something to do with encoding style URI?
Thanks in advance!
The response from the web service indicates that there is an
"unexpected #text element" in the XML request.
If figured that the web service doesn't seem to accept whitespace
inside the SOAP method element. For example:
<soap:Envelope ...>
....
<soap:Body ...>
<someMethod xmlns="http://some.company.com/web/service">
<SomeParam>Some Value</SomeParam>
</someMethod>
</soap:Body>
</soap:Envelope>
This results in the above mentioned error response from the service.
However, once all the whitespace inside the someMethod element is
removed, the service works fine (verified by opening a URL connection
and writing the XML).
BTW, the service works OK if there is whitespace in other places of the
request. It only fails with whitespace in the method call element.
In this regard, some questions:
1. Have anybody ever enciuntered this kind of problem?
2. Is there a way to disable XML request formatting in Axis?
3. Does it have something to do with encoding style URI?
Thanks in advance!