[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help...



On 12/3/2010 2:21 PM, Steve wrote:
> I have a Non SSL web service to call now. So I guess I don't need the
> digital certificates setup yet. Am I right?

Correct.  And the error you're receiving in this example has nothing to 
do with the digital certificate manager.

Here's the document you are sending (as it appears in the debug file you 
posted)

> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:job="http://ouc.com/oucMobileData/processJob/webServices/v1/jobService
> "<soapenv:Header/><soapenv:Body><job:getVersion/></soapenv:Body></soapenv:En
> velope>

If I take that and reformat it in hopes of making it more readable, it 
looks like this:

<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.or/soap/envelope/"; 
xmlns:job="http://ouc.com/oucMobileData/processJob/webServices/v1/jobService";

   <soapenv:Header/>
   <soapenv:Body>
     <job:getVersion/>
   </soapenv:Body>
</soapenv:Envelope>

Notice that the opening tag never ends.  (There's no > ending the first 
XML tag...)  It's not a valid XML document.

Here's the response you are getting from the web service:

> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
>    <SOAP-ENV:Header
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";></SOAP-ENV:Header
>> <SOAP-ENV:Body>
>     <SOAP-ENV:Fault>
>      <faultcode>SOAP-ENV:Client</faultcode>
>      <faultstring>[ISS.0088.9134] Exception occurred while processing the
> body of the message</faultstring>
>
> <faultactor>http://eistst:5551/ws/oucMobileData.processJob.webServices.v1:jo
> bService</faultactor>
>      <detail>[ISS.0088.9135] A WMDocument Exception was thrown in the server,
> usually because an XML block was not well-formed</detail>
>     </SOAP-ENV:Fault>
>    </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>


Notice that it's a 500 error (and thus HTTPAPI would return rc=500 to 
your program, indicating an error). The error message says "A WMDocument 
Exception was thrown in the server..."  Never heard of a WMDocument 
before, but the meaning is clear enough:  An error occurred on the server.

It continues "...usually becuse an XML block was not well-formed." 
Okay, well yours isn't well-formed, because it's missing the > at the 
end of the first tag.

So the response seems logical enough!

On the bright side, you are clearly communicating with the web service, 
you are successfully sending/receiving data.  Now you just need to work 
the bugs out of the data you're sending, and you'll be in great shape.
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------