Question

2
Replies
332
Views
brocg Member since 2015 3 posts
PEGA
Posted: July 1, 2016
Last activity: July 8, 2016
Closed
Solved

FedEx Integration

I am getting the following error when I attempt to leverage a SOAP connector to a fedex webservice, and I have already done the workaround at https://pdn.pega.com/support-articles/parse-xml-referred-service-soap-works-incorrectly. Any assistance would be greatly appreciated.

pxObjClass

Embed-Error

pyFaultCode

{http://schemas.xmlsoap.org/soap/envelope/}Server

pyFaultDetail

<detail><cause>UnrecoverableClientError</cause><code>SchemaError</code><desc>validation failure for ProcessShipmentRequest Error:cvc-elt.1: Cannot find the declaration of element 'ns1:ProcessShipmentRequest'.</desc></detail>

pyFaultReason

Fault

pyStatus

Fail

pyStatusMessage

com.pega.pegarules.pub.services.RemoteApplicationException: SOAP service failed

pyStatusValue

Fail:InternalReason

Autogenerated XML from the XML Stream Rule.

<pega:withEmbedded name=".ProcessShipmentRequest"><ns1:ProcessShipmentRequest xmlns:ns1="http://fedex.com/ws/ship/v17">

<pega:withEmbedded name=".WebAuthenticationDetail"><ns1:WebAuthenticationDetail>

<pega:when test="$is-present(.ParentCredential)"><pega:withEmbedded name=".ParentCredential"><ns1:ParentCredential>

<ns1:Key><pega:r n=".Key" m="normal"/></ns1:Key>

<ns1:Password><pega:r n=".Password" m="normal"/></ns1:Password>

</ns1:ParentCredential></pega:withEmbedded></pega:when>

<pega:withEmbedded name=".UserCredential"><ns1:UserCredential>

<ns1:Key><pega:r n=".Key" m="normal"/></ns1:Key>

<ns1:Password><pega:r n=".Password" m="normal"/></ns1:Password>

</ns1:UserCredential></pega:withEmbedded>

</ns1:WebAuthenticationDetail></pega:withEmbedded>

<pega:withEmbedded name=".ClientDetail"><ns1:ClientDetail>

<ns1:AccountNumber><pega:r n=".AccountNumber" m="normal"/></ns1:AccountNumber>

<ns1:MeterNumber><pega:r n=".MeterNumber" m="normal"/></ns1:MeterNumber>

<pega:when test="$is-present(.IntegratorId)"><ns1:IntegratorId><pega:r n=".IntegratorId" m="normal"/></ns1:IntegratorId></pega:when>

<pega:when test="$is-present(.Localization)"><pega:withEmbedded name=".Localization"><ns1:Localization>

<ns1:LanguageCode><pega:r n=".LanguageCode" m="normal"/></ns1:LanguageCode>

<pega:when test="$is-present(.LocaleCode)"><ns1:LocaleCode><pega:r n=".LocaleCode" m="normal"/></ns1:LocaleCode></pega:when>

</ns1:Localization></pega:withEmbedded></pega:when>

</ns1:ClientDetail></pega:withEmbedded>

<pega:when test="$is-present(.TransactionDetail)"><pega:withEmbedded name=".TransactionDetail"><ns1:TransactionDetail>

<pega:when test="$is-present(.CustomerTransactionId)"><ns1:CustomerTransactionId><pega:r n=".CustomerTransactionId" m="normal"/></ns1:CustomerTransactionId></pega:when>

<pega:when test="$is-present(.Localization)"><pega:withEmbedded name=".Localization"><ns1:Localization>

<ns1:LanguageCode><pega:r n=".LanguageCode" m="normal"/></ns1:LanguageCode>

<pega:when test="$is-present(.LocaleCode)"><ns1:LocaleCode><pega:r n=".LocaleCode" m="normal"/></ns1:LocaleCode></pega:when>

</ns1:Localization></pega:withEmbedded></pega:when>

</ns1:TransactionDetail></pega:withEmbedded></pega:when>

<pega:withEmbedded name=".Version"><ns1:Version>

<ns1:ServiceId><pega:r n=".ServiceId" m="normal"/></ns1:ServiceId>

<ns1:Major><pega:r n=".Major" m="normal"/></ns1:Major>

<ns1:Intermediate><pega:r n=".Intermediate" m="normal"/></ns1:Intermediate>

<ns1:Minor><pega:r n=".Minor" m="normal"/></ns1:Minor>

</ns1:Version></pega:withEmbedded>

<pega:withEmbedded name=".RequestedShipment"><pega:include name="pyAnyNS.pyAnyName" type="Rule-Obj-XML" inline="false"><pega:param name="pzElemName" value="RequestedShipment"/><pega:param name="pzElemNS" value="http://fedex.com/ws/ship/v17"/></pega:include></pega:withEmbedded>

</ns1:ProcessShipmentRequest></pega:withEmbedded>

WSDL is located at http://cm72.pegatsdemo.com:8080/Fedex/FedExWebServicesAdvancedWSDL/ShipService_v17.wsdl

Tracer Output:

Header  Sequence  35  Interaction  480  Timestamp  Jul 01, 116 - 11:43:03 11:54:49  (20160701T154303.414 GMT)  Elapsed Time  0.0080 (s)  Event Type  Step End  Event Name  Step End  Event Key  RULE-OBJ-ACTIVITY RULE-CONNECT-SOAP INVOKEAXIS2 #20151123T164603.692 GMT  Thread Name  STANDARD  Requestor ID  HCA785AAA21C7A10EBAD0698555460AEE  Correlation ID  HCA785AAA21C7A10EBAD0698555460AEE  Work Pool  MyCO-FW-HRFrameFW-Work  Active PAL Stat  pxConnectElapsed  Last Step  RULE-CONNECT-SOAP INVOKEAXIS2 #20151123T164603.692 GMT Step: 15 Circum: 0  Input  Activity=Pega-RunRecord.pzRunRecordExecute  Ruleset Name  Pega-IntegrationEngine  Ruleset Version  07-10-23  Standard  Activity Name  INVOKEAXIS2  Activity Number  26  Parameter Page Name  =unnamed=  Primary Page Class  Rule-Connect-SOAP  Primary Page Name  =unnamed=  Step Method  Java  Step Number  15  Step Status  FAIL  Step Status Info

 ** SOAP service failed 
Data Integration
Moderation Team has archived post
Share this page LinkedIn