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

Re: HTTPAPI



   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, [1]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][2]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=[3]"http://schemas.xmlsoap.org/soap/envelope/"; '

   +'SOAP-ENV:encodingStyle=[4]"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

   [[5]cid:_4_0641EB4C0641BD30002B62E242257BD4]

   Systems Integration
   Tel: +27 (13) 247 2816 Fax: +27 (0) 86 573 2274
   Cell: +27 (0) 83 458 6599
   Email: [[6]2]derick.venter@xxxxxxxxxx
   [3]www.gijima.com
     __________________________________________________________________

   This e-mail is subject to the Columbus Stainless [Pty] Ltd Email Legal
   Notices available at:
   [4][7]http://www.columbus.co.za/EmailLegalNotice.htm.
     __________________________________________________________________

   This e-mail message has been scanned for Viruses and Content and
   cleared by MailMarshal
     __________________________________________________________________

References

   1. [8]http://schemas.xmlsoap.org/soap/envelope/
   2. [9]mailto:derick.venter@xxxxxxxxxx
   3. [10]http://www.gijima.com/
   4. [11]http://www.columbus.co.za/EmailLegalNotice.htm


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

References

   1. mailto:Venter.Derick@xxxxxxxxxxxxxx
   2. http://schemas.xmlsoap.org/soap/envelope/
   3. http://schemas.xmlsoap.org/soap/envelope/
   4. http://schemas.xmlsoap.org/soap/encoding/
   5. cid:_4_0641EB4C0641BD30002B62E242257BD4
   6. mailto:2]derick.venter@xxxxxxxxxx
   7. http://www.columbus.co.za/EmailLegalNotice.htm
   8. http://schemas.xmlsoap.org/soap/envelope/
   9. mailto:derick.venter@xxxxxxxxxx
  10. http://www.gijima.com/
  11. http://www.columbus.co.za/EmailLegalNotice.htm
  12. 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
-----------------------------------------------------------------------