[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HTTPAPI
Thanks guys
Yes that was it. Variable length.
My apologies for asking something obvious. Well at least i got my first
web service call working from RPG.
Great articles on how to consume web services using HTTPAPI. Thanks
Scott.
Scott, one thing that i noticed:
The links to your articles from your web site gives me a "Page Not
Found" error. looks like its pointing to
[1]http://iprodeveloper.com/article/club-tech-iseries-programming-tips-
newsletter-23. It works when i use
[2]http://iprodeveloper.com/rpg-programming/using-expat-xml-parser-rpg-
program-part-1
Thanks for the help
Kind regards
Derick Venter
Applications Developer IV
[cid:_4_083C7BA8083C77A80025171D42257BD5]
Systems Integration
Tel: +27 (13) 247 2816 Fax: +27 (0) 86 573 2274
Cell: +27 (0) 83 458 6599
Email: [3]derick.venter@xxxxxxxxxx
[4]www.gijima.com
From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Date: 2013/08/28 12:42 AM
Subject: Re: HTTPAPI
Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
__________________________________________________________________
I believe HTTPAPI will allow XML strings to be as large as 2 gb. Is it
possible that the variable you're storing your XML in is defined too
small? The one in your code sample doesn't seem very large --
certainly nothing near HTTPAPI's limits. But, if your RPG variable to
contain the XML is too small, you'd certainly have problems like this.
On 8/27/2013 2:53 AM, Venter.Derick@xxxxxxxxxxxxxx wrote:
> Hi
> Hope you can help me.
> I am new to the mailing list and just started playing with
HTTPAPI in
> RPG.
> I got my RPG program to call a webservice successfully. Yeahhh!
>
> The problem is when my request XML is too long it gives me
"HTTP/1.1
> 500 Internal Server Error"
> The HTTPAPI log says:
> SetError() #13: HTTP/1.1 500 Internal Server Error
> recvresp(): end with 500
> recvdoc parms: identity 335
> header_load_cookies() entered
> recvdoc(): entered
> SetError() #0:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <SOAP-ENV:Envelope
> xmlns:SOAP-ENV="[1][5]http://schemas.xmlsoap.org/soap/envelope/
>
>
"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode>
> <faultstring>The Server could not load the Body document for the
> response
>
</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
> SetError() #13: HTTP/1.1 500 Internal Server Error
> http_close(): entered
> heres my XML input "request" string:
> SOAP =
> '<SOAP-ENV:Envelope '
>
+'xmlns:SOAP-ENV="[6]http://schemas.xmlsoap.org/soap/envelope/" '
>
>
+'SOAP-ENV:encodingStyle="[7]http://schemas.xmlsoap.org/soap/encoding/"
> '
> +'<SOAP-ENV:Body> '
> +'<p1:CorticonRequest '
> +'xmlns:p1="urn:Corticon"
decisionServiceName="MatStatusFlow"> '
> +'<p1:WorkDocuments> '
> +'<p1:Product id="B20130823002349459"> '
> +'<p1:excessMass>5000</p1:excessMass> '
> +'<p1:calculatedMass>5000</p1:calculatedMass> '
> +'<p1:coating>~</p1:coating> '
> +'<p1:coilOuterDiameter>1791</p1:coilOuterDiameter> '
> +'<p1:densityUDCGrp>7.9</p1:densityUDCGrp> '
> +'<p1:dimensionForm>FLAT</p1:dimensionForm> '
> +'<p1:edgeCode>TRIMMED DN</p1:edgeCode> '
> +'<p1:gauge>1.5</p1:gauge> '
> +'<p1:goodWidth>0</p1:goodWidth> '
> //+'<p1:headLeadCode>NON</p1:headLeadCode> '
> //+'<p1:hotChargeCode>~</p1:hotChargeCode> '
> //+'<p1:innerCoreType>~</p1:innerCoreType> '
> //+'<p1:interLeaving>~</p1:interLeaving> '
> //+'<p1:internalBottomFinish>2D</p1:internalBottomFinish>
'
> //+'<p1:internalFinish>2D</p1:internalFinish> '
> //+'<p1:internalSubFinish>~</p1:internalSubFinish>'
> //+'<p1:internalType>B304151</p1:internalType> '
> //+'<p1:length>1500</p1:length> '
> //+'<p1:mass>5000</p1:mass> '
> //+'<p1:matchPointIndicator>true</p1:matchPointIndicator>
'
> //+'<p1:materialQuality>4</p1:materialQuality> '
>
//+'<p1:maxHotbandGaugeAllowed>0</p1:maxHotbandGaugeAllowed> '
>
//+'<p1:maximumCoilOuterDiameter>0</p1:maximumCoilOuterDiameter>
> '
> //+'<p1:maximumGauge>1.5</p1:maximumGauge> '
>
//+'<p1:maximumCoilInnerDiameter>0</p1:maximumCoilInnerDiameter>
> '
> //+'<p1:maximumLength>0</p1:maximumLength> '
> //+'<p1:maximumMass>0</p1:maximumMass> '
> //+'<p1:maximumPackMass>0</p1:maximumPackMass> '
> +'<p1:maximumPieceMass>0</p1:maximumPieceMass> '
> +'<p1:maximumPieceQuantity>0</p1:maximumPieceQuantity> '
> +'<p1:maximumWidth>1200</p1:maximumWidth> '
> +'<p1:minHotbandGaugeAllowed>0</p1:minHotbandGaugeAllowed>
'
>
+'<p1:minimumCoilOuterDiameter>0</p1:minimumCoilOuterDiameter> '
> +'<p1:minimumGauge>1.5</p1:minimumGauge> '
>
//+'<p1:minimumCoilInnerDiameter>0</p1:minimumCoilInnerDiameter>
> '
> //+'<p1:minimumLength>0</p1:minimumLength> '
> //+'<p1:minimumMass>0</p1:minimumMass> '
> //+'<p1:minimumPackMass>0</p1:minimumPackMass> '
> //+'<p1:minimumPieceMass>0</p1:minimumPieceMass> '
> //+'<p1:minimumPieceQuantity>0</p1:minimumPieceQuantity> '
> //+'<p1:minimumWidth>1200</p1:minimumWidth> '
> //+'<p1:nextProcessCode>~</p1:nextProcessCode> '
>
> //+'<p1:operationsItemID>B20130823002349459</p1:operationsItemID>
'
>
> //+'<p1:operationsItemSubType>MATERIAL</p1:operationsItemSubType>
'
> //+'<p1:opeTypeUDCGrp>304</p1:opeTypeUDCGrp> '
> //+'<p1:packing>STP</p1:packing> '
> //+'<p1:pieceMass>5000</p1:pieceMass> '
> //+'<p1:pieceQuantity>1</p1:pieceQuantity> '
> //+'<p1:cutCode>~</p1:cutCode> '
> //+'<p1:productForm>S</p1:productForm> '
>
//+'<p1:productMarkingPosition>~</p1:productMarkingPosition> '
> //+'<p1:productMarkingType>~</p1:productMarkingType> '
> //+'<p1:productMarkingValue> '
> //+'MPO/MANUFMARK/304L/1/1220/2B/ASTM A240 / A240M/HEAT '
> //+'</p1:productMarkingValue> '
> //+'<p1:rollOutLength>0</p1:rollOutLength> '
> //+'<p1:singleUnitIndicator>true</p1:singleUnitIndicator>
'
> //+'<p1:spoolWallThickness>0</p1:spoolWallThickness> '
> //+'<p1:tailLeadCode>NON</p1:tailLeadCode> '
> //+'<p1:targetPackMass>0</p1:targetPackMass> '
> //+'<p1:targetWidth>1200</p1:targetWidth> '
> //+'<p1:transitionCode>~</p1:transitionCode> '
> // +'<p1:typeGroupUDCGrp>304</p1:typeGroupUDCGrp> '
> //+'<p1:knownBy>X0009448</p1:knownBy> '
> //+'<p1:bottomSubFinish>~</p1:bottomSubFinish> '
> //+'<p1:orientationMask>1011</p1:orientationMask>'
> //+'<p1:scaleMass>5000</p1:scaleMass> '
> //+'<p1:coilInnerDiameter>610</p1:coilInnerDiameter> '
> //+'<p1:productInternalUse>PRODMAT</p1:productInternalUse>
'
> +'</p1:Product> '
> +'</p1:WorkDocuments> '
> +'</p1:CorticonRequest> '
> +'</SOAP-ENV:Body> '
> +'</SOAP-ENV:Envelope> ';
> I commented out line by line until it worked. Then added more
lines and
> came to the conclusion that my input xml string is too long.
> How long can an input xml string be?
> Our xml's are so long because we are calling decision services
that
> needs lots of input to make a decision and return output xml.
> Thanks in advance
> Derick Venter
> Applications Developer IV
>
> [[8]cid:_4_0641EB4C0641BD30002B62E242257BD4]
>
> Systems Integration
> Tel: +27 (13) 247 2816 Fax: +27 (0) 86 573 2274
> Cell: +27 (0) 83 458 6599
> Email: [2]derick.venter@xxxxxxxxxx
> [3][9]www.gijima.com
>
__________________________________________________________________
>
> This e-mail is subject to the Columbus Stainless [Pty] Ltd Email
Legal
> Notices available at:
> [4][10]http://www.columbus.co.za/EmailLegalNotice.htm.
>
__________________________________________________________________
>
> This e-mail message has been scanned for Viruses and Content and
> cleared by MailMarshal
>
__________________________________________________________________
>
> References
>
> 1. [11]http://schemas.xmlsoap.org/soap/envelope/
> 2. [12]mailto:derick.venter@xxxxxxxxxx
> 3. [13]http://www.gijima.com/
> 4. [14]http://www.columbus.co.za/EmailLegalNotice.htm
>
>
>
>
-----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> [15]http://www.scottklement.com/mailman/listinfo/ftpapi
>
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
[16]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
__________________________________________________________________
This e-mail is subject to the Columbus Stainless [Pty] Ltd Email Legal
Notices available at:
[17]http://www.columbus.co.za/EmailLegalNotice.htm.
__________________________________________________________________
This e-mail message has been scanned for Viruses and Content and
cleared by MailMarshal
__________________________________________________________________
References
1. http://iprodeveloper.com/article/club-tech-iseries-programming-tips-newsletter-23
2. http://iprodeveloper.com/rpg-programming/using-expat-xml-parser-rpg-program-part-1
3. mailto:derick.venter@xxxxxxxxxx
4. http://www.gijima.com/
5. http://schemas.xmlsoap.org/soap/envelope/
6. http://schemas.xmlsoap.org/soap/envelope/
7. http://schemas.xmlsoap.org/soap/encoding/
8. cid:_4_0641EB4C0641BD30002B62E242257BD4
9. file://localhost/tmp/www.gijima.com
10. http://www.columbus.co.za/EmailLegalNotice.htm
11. http://schemas.xmlsoap.org/soap/envelope/
12. mailto:derick.venter@xxxxxxxxxx
13. http://www.gijima.com/
14. http://www.columbus.co.za/EmailLegalNotice.htm
15. http://www.scottklement.com/mailman/listinfo/ftpapi
16. http://www.scottklement.com/mailman/listinfo/ftpapi
17. http://www.columbus.co.za/EmailLegalNotice.htm

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