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

Re: Call to Microsoft .NET Framework executeXML



hi Ralf,

The message "403 method not allowed" is referring to the HTTP method, 
not the SOAP operation. Here's how you can tell:  An HTTP error message 
is prefixed by a 3-digit number (403 in this case) and is standardized 
across the HTTP protocol.  403 always means "forbidden", or "you don't 
have access" or something like that.

by contrast, SOAP errors are normally transmitted inside the contents of 
a SOAP message.  To read them, you'll have to parse the XML that's sent 
back to your program.   Many SOAP servers will return a "200 success" 
HTTP code, while reporting failure in the XML.   Still other SOAP 
servers will set the HTTP code to a generic failure "500 Internal Server 
Error" while reporting the error message in the XML.  But in either 
case, an error with a SOAP document would be in the XML message.

A "403 Forbidden" message says that you aren't allowed to use the POST 
method.  At least, that's what it appears on the surface.  Perhaps this 
web service isn't expecting you to use POST?  Or perhaps it does use 
POST, but you forgot to supply login credentials?   Or perhaps it uses 
POST, but they forgot to authorize you?   In any of these cases, there's 
not much I can do, since I'm not familiar with this web service.




On 6/30/2010 4:57 AM, Ralf.Mueller@xxxxxxxxx wrote:
>
>     Hello All,
>     I'm trying to access a webservice that is create with .NET.
>     I used this method to call the webservice:
>     rc = http_url_post_xml(
>       'https://webservice'
>                       : %addr(data) + 2
>                       : %len(data)
>                       : *NULL
>                       : %paddr(Incoming)
>                       : %addr(text)
>                       : HTTP_TIMEOUT
>                       : HTTP_USERAGENT
>                       : 'text/xml'
>                       : *Blanks);
>     But I get the answer 403 method not allowed.
>     So it seems I can connect.
>     My Xml String is valid and looks like this:
>     <?xml version="1.0" encoding="utf-16"?>
>     <ROOT Server="servername" Username="user" Password="password">
>       <PARAMETER Method="GetChassisSpecification" ChassisNumber="5215623"
>     Version="2008.3" />
>     </ROOT>
>     The author of the webservice just told me I should use execute XML.
>     So I don't really know whith what type of call I should access the
>     service.
>     Any ideas are appreciated.
>     Cheers
>     Ralf
>
>     --------------------------------------------------
>     Sitz der Gesellschaft:
>     Scania Deutschland GmbH, August-Horch-Str. 10, 56070 Koblenz, Germany
>     Registereintrag: Amtsgericht Koblenz HRB 532
>     Geschäftsführer: Thomas Bertilsson
>     --------------------------------------------------
>     ----------------------------------------------------------------------
>     -------
>     Truck of the Year 2010: die neue R-Serie von Scania
>     ----------------------------------------------------------------------
>     -------
>
>
>
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list.  To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------