FedEx web Integration ERROR CODE 9004
<p>I am trying to integrate the tracking services of FedEx on to my webapp and I keep getting this error..</p>

<blockquote>
  <p>Severity: FAILURE<br> Source: prxy<br/> Code: 9004<br/> Message:
  Remote EJB method: track not called. Unable to create the remote bean.
  Exception: javax.naming.NamingException: unable to find primary
  representative [Root exception is javax.naming.NamingException: unable
  to find primary representative]. Cause: javax.naming.NamingException:
  unable to find primary representative [Root exception is
  javax.naming.NamingException: unable to find primary representative]</p>
</blockquote>

<p>Request</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;SOAP-ENV:Envelope xmlns:SOAP-      ENV="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:ns1="http://fedex.com/ws/track/v10"&gt;&lt;SOAP-ENV:Body&gt;&lt;ns1:TrackRequest&gt; &lt;ns1:WebAuthenticationDetail&gt;&lt;ns1:ParentCredential&gt;&lt;ns1:Key&gt;#########&lt;/ns1:Key&gt;&lt;ns1:Password&gt;###########&lt;/ns1:Password&gt;&lt;/ns1:ParentCredential&gt;&lt;ns1:UserCredential&gt;&lt;ns1:Key&gt;#############&lt;/ns1:Key&gt;&lt;ns1:Password&gt;###########&lt;/ns1:Password&gt;&lt;/ns1:UserCredential&gt;&lt;/ns1:WebAuthenticationDetail&gt;&lt;ns1:ClientDetail&gt;&lt;ns1:AccountNumber&gt;#########&lt;/ns1:AccountNumber&gt;&lt;ns1:MeterNumber&gt;###########&lt;/ns1:MeterNumber&gt;&lt;/ns1:ClientDetail&gt;&lt;ns1:TransactionDetail&gt;&lt;ns1:CustomerTransactionId&gt;*** Track  using PHP ***&lt;/ns1:CustomerTransactionId&gt;&lt;/ns1:TransactionDetail&gt;&lt;ns1:Version&gt;&lt;ns1:ServiceId&gt;trck&lt;/ns1:ServiceId&gt;&lt;ns1:Major&gt;10&lt;/ns1:Major&gt;&lt;ns1:Intermediate&gt;0&lt;/ns1:Intermediate&gt;&lt;ns1:Minor&gt;0&lt;/ns1:Minor&gt;&lt;/ns1:Version&gt;&lt;ns1:SelectionDetails&gt;&lt;ns1:PackageIdentifier&gt; &lt;ns1:Type&gt;TRACKING_NUMBER_OR_DOORTAG&lt;/ns1:Type&gt;&lt;ns1:Value&gt;449044304137821&lt;/ns1:Value&gt;&lt;/ns1:PackageIdentifier&gt;&lt;ns1:ShipmentAccountNumber&gt;########&lt;/ns1:ShipmentAccountNumber&gt; &lt;/ns1:SelectionDetails&gt;&lt;/ns1:TrackRequest&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;
</code></pre>

<p>Response</p>

<pre><code>&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;SOAP-ENV:Header/&gt;&lt;SOAP-ENV:Body&gt;&lt;TrackReply xmlns="http://fedex.com/ws/track/v10"&gt;&lt;HighestSeverity&gt;FAILURE&lt;/HighestSeverity&gt;&lt;Notifications&gt;&lt;Severity&gt;FAILURE&lt;/Severity&gt;&lt;Source&gt;prxy&lt;/Source&gt;&lt;Code&gt;9004&lt;/Code&gt;&lt;Message&gt;Remote EJB method: track not called. Unable to create the remote bean. Exception: javax.naming.NamingException: unable to find primary representative [Root exception is javax.naming.NamingException: unable to find primary representative]. Cause: javax.naming.NamingException: unable to find primary representative [Root exception is javax.naming.NamingException: unable to find primary representative]&lt;/Message&gt;&lt;/Notifications&gt;&lt;/TrackReply&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;
</code></pre>

<p>I am using the Laravel framework and there are three files used for this Fedex integration, i.e., TrackService_v10.wsdl which contains the XML data, TrackWebServiceClient.php5 which contains the php functions to send a request and the fedex-common.php5 which also contains the php functions containing the input to post.</p>

<p>I have tried looking everywhere on the internet and the Developer and resource center on FedEx but I really cant get it working. I also dont understand this SOAP requests. Also, FedEx says they dont have programmers to help me with this. Can anyone please help? Thanks in advance.</p>