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

Re: http_url_post_xml problem



It came from an example in the manual.

Not sure what you mean by namespaces, or why I would be missing them.

----- Original Message ----- 
From: "Scott Klement" <sk@xxxxxxxxxxxxxxxx>
To: "HTTPAPI and FTPAPI Projects" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, January 30, 2009 2:41 PM
Subject: Re: http_url_post_xml problem


You appear to be missing namespaces on your SOAP elements -- that's not
good!  Did you use a tool to generate the SOAP, or did you do it by hand?

If the latter, I can see why you're frustrated. SOAP is not meant to be
done by hand!


John Clark(Hotmail) wrote:
> Excellent tip Mike, using IE.
>
> I just opened my xml up and it appears fine in IE.  I am getting very
> frustrated trying to use this web service.  I just don't know enough about
> HTTP/SOAP/XML/networking/etc to be able to troubleshoot this.
>
> It seems like there are a million pieces that all have to be in place to
> make this work.  I apparently don't have something setup properly, but I
> can't figure out where to look.
>
> My RPG program is similar to this:
>
> http_debug(*ON);
> http_XmlStripCRLF(*ON);
>
> SOAP = "<?xml version="1.0" encoding="UTF-8"?><Envelope
> xmlns:s="http://schemas.xmlsoap.org/soap/envelope/";><Header><Security
> mustUnderstand="1"
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";><UsernameToken
> Id="uuid-90128b0b-6212-4e16-9382-e55489fa6444-1"><Username>USERNAME</Username><Password
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wssusername-token-profile-1.0#PasswordText";>PASSWORD</Password></UsernameToken></Security></Header><Body
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";><requestMessage
> xmlns="urn:schemas-cybersource-com:transaction-data-1.28"><merchantID>MERCHANTID</merchantID><merchantReferenceCode>MRC-123456</merchantReferenceCode><billTo><firstName>John</firstName><lastName>Doe</lastName><street1>1295
> Charleston Road</street1><city>Mountain
> View</city><state>CA</state><postalCode>94043</postalCode><country>US</country><email>null@xxxxxxxxxxxxxxx</email></billTo><purchaseTotals><currency>USD</currency><grandTotalAmount>10.00</grandTotalAmount></purchaseTotals><card><accountNumber>4111111111111111</accountNumber><expirationMonth>12</expirationMonth><expirationYear>2020</expirationYear></card><ccAuthService
> run="true"/></requestMessage></Body></Envelope>"
>
> http_debug(*ON);
>
> rc = http_url_post_xml(
>      'https://66.185.180.11:443/commerce/1.x/transactionProcessor/'
>                   : %addr(SOAP) + 2
>                   : %len(SOAP)
>                   : *NULL
>                   : %paddr(Incoming)
>                   : *NULL);
>
>
> Thanks for the help so far!
>
> John
>
>
>
>
> ----- Original Message ----- 
> From: "Mike Krebs" <mkrebs@xxxxxxxxxxxxxxxxxx>
> To: "'HTTPAPI and FTPAPI Projects'" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
> Sent: Friday, January 30, 2009 1:21 PM
> Subject: RE: http_url_post_xml problem
>
>
> A simple interactive way is to open it in IE and Firefox and see if they 
> can
> parse it.
>
> If you parse it using Expat, you could do "batch validation" on the IBM i.
>
> Mike Krebs
>
>> -----Original Message-----
>> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
>> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of RUDAS István
>> Sent: Friday, January 30, 2009 10:29 AM
>> To: HTTPAPI and FTPAPI Projects
>> Subject: AW: http_url_post_xml problem
>>
>> Hello,
>>
>> @Grizzly Malchow:
>>
>> The topic "validate your XML"  would interest me  very much, especially
>> if you speak about "a batch way"  to do that.  If you can guide me to
>> one of the possibilities or an article how to manage that, it would be
>> a great help for me.
>>
>>
>> István
>>
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
>> bounces@xxxxxxxxxxxxxxxxxxxxxx] Im Auftrag von Grizzly Malchow
>> Gesendet: Freitag, 30. Jänner 2009 16:13
>> An: HTTPAPI and FTPAPI Projects
>> Betreff: RE: http_url_post_xml problem
>>
>> Your error message states XML parse error. I can only assume where ever
>> you are posting to is having trouble parsing the xml.
>> Have you tried validating your xml? There are numerous sites out there
>> that allow you to do that.
>>
>>
>>
>> -----------------------------------------------------------------------
>> 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
> -----------------------------------------------------------------------
>
> -----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------

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