[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Antwort: Re: Call to Microsoft .NET Framework executeXML
Hi Scott,
all I can say is that authentication should be ok, since I have a test
program supplied with the webservice,
which works ok with user and password. I guess the problem is that it
expects a get, but I don't know how
to use a get method with posting the xml content? Or do I have to
include the xml message into the url?
This is what the log says:
Protocol Used: TLS Version 1
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST / HTTP/1.1
Host: test.ws.cesow.scania.com
User-Agent: http-api/1.23
Content-Type: text/xml
SOAPAction: GetChassisSpecification
Expect: 100-continue
Content-Length: 219
recvresp(): entered
HTTP/1.1 405 Method Not Allowed
Allow: OPTIONS, TRACE, GET, HEAD
Content-Length: 1564
Content-Type: text/html
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Date: Thu, 01 Jul 2010 05:26:22 GMT
Best Regards
Ralf
Scott Klement <sk@xxxxxxxxxxxxxxxx>
Gesendet von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
30.06.2010 19:59
Bitte antworten an
HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
An
HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Kopie
Thema
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:
> [1]http://www.scottklement.com/mailman/listinfo/ftpapi
>
----------------------------------------------------------------------
-
----------------------------------------------------------------------
-
This is the FTPAPI mailing list. To unsubscribe, please go to:
[2]http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
--------------------------------------------------
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
----------------------------------------------------------------------
-------
References
1. http://www.scottklement.com/mailman/listinfo/ftpapi
2. 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
-----------------------------------------------------------------------