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

RE: Help with HTTPAPI "SOAP protocol"



Jeffreehy (and Scott),

It looks to me as if this service supports both SOAP 1.1 and 1.2 - there
are bindings for both in the wsdl. The original message that you were
sending looks like a SOAP 1.1 message to me because it uses the
http://schemas.xmlsoap.org/soap/envelope/ namespace. The testing tool
that we use only supports SOAP 1.1 and it understands the wsdl and
generates headers and a request message that look like this:

User-Agent: Crosscheck Networks SOAPSonar
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://dei.gob.hn/FenixWeb/GetDescripcion";
Content-Length: 381

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xmlns:xsd="http://www.w3.org/2001/XMLSchema";
 xmlns:tns="http://dei.gob.hn/FenixWeb";>
  <soap:Body>
    <tns:GetDescripcion>
      <tns:idError>123</tns:idError>
    </tns:GetDescripcion>
  </soap:Body>
</soap:Envelope>

I still think that there is something strange going on with the
SOAPAction header, because the value in your debug output isn't as per
the wsdl or Your rpg code.

Nick
__________________________________
Nick Townsend
Technical Leader
Endsleigh Insurance Services Limited
Telephone: +44 (0)1242 866866 ext. 6426


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: 25 January 2008 19:29
To: HTTPAPI and FTPAPI Projects
Subject: Re: Help with HTTPAPI "SOAP protocol"

Hi Jeff,

This particular web service (according to it's WSDL, anyway) can accept
input/output using several different protocols.  They are SOAP, SOAP12,
HttpGet and HttpPost.

They all do exactly the same thing.  They only offer alternatives to
make the web service accessible to a wider range of client software.

HTTPAPI can send data in all of these different ways, as well, depending
on the parameters you sent to HTTPAPI.

In your instance, you're using the HttpPost method.  The difference
between SOAP (which also uses POST) and a flat HttpPost is the
content-type.  You are sending a content type of
application/x-www-form-urlencoded -- and that corresponds to the
HttpPost on the web service.

Unfortunately, the actual DATA you're sending isn't URL encoded -- it's
SOAP data, and that's confusing the heck out of the web service.  You've
told it you're using URL Encoding, but you're not, you're using SOAP.
The web service is confused by this.

Try changing your content type to 'application/soap+xml' -- this is the
correct content-type for SOAP version 1.2.  (Version 1.1 used text/xml
-- but I don't think this web service supports version 1.1)

SOAP version 1.2 also sends the SoapAction parameter a little
differently.  In version 1.1 it's passed via HTTPAPI's peSoapAction
parameter -- in version 1.2, they made it a part of the content-type so
the content-type is something like:

     'application/soap+xml; soapaction=XXXXXXX'

not sure if you need to change the way you're sneding the SOAPAction or
not -- if one method doesn't work, try the next.



Jeffreehy Talavera wrote:
>    When I change the Content-Type to "text/xml" I got the error messasge
>    = (Request format is invalid: text/xml.)
>
>    I'm wonder whywhen I used the Content-Type of
>    "application/x-www-form-urlencoded", I got the error = (Missing
>    parameter: idError. )
>    do you have any idea?, Thanks.
>
>
>
>    Jeff.
>
>    On Jan 25, 2008 8:55 AM, Nick Townsend
>    <[1]Nick.Townsend@xxxxxxxxxxxxxxx> wrote:
>
>      Jeffreehy,
>      The format of your request message look OK to me, but I think that
>      you should be using a Content-Type of "text/xml" rather than "
>      application/x-www-form-urlencoded".
>      Also, I can't understand where the SOAPAction value in your debug
>      log is coming from.  You program appears to be supplying a value of
>      "[2]http://dei.gob.hn/FenixWeb/GetDescripcion";, which looks correct
>      to me, but the debug log shows a SOAPAction value of
>      "[3]http://172.16.23.61/WebServices/Tributos/DeiErrores.asmx?op=Get
>      D".
>      Nick
>      __________________________________
>      Nick Townsend
>      Technical Leader
>      Endsleigh Insurance Services Limited
>      Telephone: +44 (0)1242 866866 ext. 6426
>
>    -----Original Message-----
>    From: [4]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>    [mailto:[5]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of
>    Jeffreehy Talavera
>    Sent: 25 January 2008 13:23
>    To: [6]ftpapi@xxxxxxxxxxxxxxxxxxxxxx
>    Subject: Help with HTTPAPI "SOAP protocol"
>    Hi,
>    I'm trying to consume a Web Service using HTTPAPI 1.21 but I'm getting
>    an "*Missing
>    parameter: idError*." I have attached the following files:
>    *1. DeiErrores Web Service.mht      (Web Service , Browser Interface)
>    2. DeiErrores.asmx                         (WSDL)
>    3. JETADEI5OS.txt                          (RPG ILE Client Program to
>    consume the web service)
>    4. DeiRespuesta.soap.txt                (Response file from web
>    service
>    provider)  <---------Error
>    5. httpapi_debug.txt                       (HTTPAPI debug file)*
>    if anybody have the time to take a look to this files and give me a
>    hand, I
>    will appreciate very much.
>    thank you in advance.
>    *Jeffreehy Talavera*
>    *Consultan
>
>      S390, iSeries & Open Systems*
>      Information contained in this email is intended for the use of the
>      addressee only, and is confidential and may be the subject of legal
>      professional privilege.  Any dissemination, distribution, copying
>      or use of this communication without prior permission of the
>      addressee is strictly prohibited.   If you have received this email
>      in error please notify the Help Desk at Endsleigh on 01242 866866.
>      The contents of an attachment to this email may contain software
>      viruses, which could damage your computer system. While Endsleigh
>      has taken every reasonable precaution to minimise this risk, we
>      cannot accept liability for any damage, which you sustain as a
>      result of software viruses. You should carry out your own virus
>      checks before opening the attachment.
>      [7]www.endsleigh.co.uk
>      Endsleigh Insurance Services Limited is authorised and regulated by
>      the Financial Services Authority, this can be checked on the FSA
>      Register by visiting their web site at [8]www.fsa.gov.uk/register
>      Company number: 856706
>      Registered in England at Shurdington Road, Cheltenham Spa,
>      Gloucestershire GL51 4UE
>      -------------------------------------------------------------------
>      ----
>      This is the FTPAPI mailing list.  To unsubscribe, please go to:
>      [9]http://www.scottklement.com/mailman/listinfo/ftpapi
>      -------------------------------------------------------------------
>      ----
>
>    --
>    Consultor Especialista
>    S390, iSeries & Open Systems
>
> References
>
>    1. mailto:Nick.Townsend@xxxxxxxxxxxxxxx
>    2. http://dei.gob.hn/FenixWeb/GetDescripcion
>    3. http://172.16.23.61/WebServices/Tributos/DeiErrores.asmx?op=GetD
>    4. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>    5. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
>    6. mailto:ftpapi@xxxxxxxxxxxxxxxxxxxxxx
>    7. http://www.endsleigh.co.uk/
>    8. http://www.fsa.gov.uk/register
>    9. 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
> -----------------------------------------------------------------------

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



Information contained in this email is intended for the use of the addressee only, and is confidential and may be the subject of legal professional privilege.  Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited.   If you have received this email in error please notify the Help Desk at Endsleigh on 01242 866866. 
The contents of an attachment to this email may contain software viruses, which could damage your computer system. While Endsleigh has taken every reasonable precaution to minimise this risk, we cannot accept liability for any damage, which you sustain as a result of software viruses. You should carry out your own virus checks before opening the attachment. 
www.endsleigh.co.uk
Endsleigh Insurance Services Limited is authorised and regulated by the Financial Services Authority, this can be checked on the FSA Register by visiting their web site at www.fsa.gov.uk/register
Company number: 856706 
Registered in England at Shurdington Road, Cheltenham Spa, Gloucestershire GL51 4UE


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