Fatal error: Uncaught SoapFault exception: [prefix0:MessageInformationHeaderRequired]

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • waqasahmed996
    New Member
    • Jun 2008
    • 160

    Fatal error: Uncaught SoapFault exception: [prefix0:MessageInformationHeaderRequired]

    I am trying to create a soap connection , however I'm getting an error when I try and create an instance of the soap client class.

    Code:
    $client = new SoapClient("exampleaddress.wsdl",
            array(  'login'      => 'xxx',
                    'password' => 'xxxx',
                 )
    			);
    The error is

    Code:
    Fatal error: Uncaught SoapFault exception: [prefix1:MessageInformationHeaderRequired]
    
    xxxxx.Addressing.AddressingFault: Message Information Header Required at
    xxxxx.Messaging.SoapHttpRouter.ProcessRequestMessage(SoapEnvelope message) at
    xxxxx.Messaging.SoapHttpRouter.RoutingAsyncResult.ForwardRequest() at
    xxxxx.Messaging.SoapHttpRouter.RoutingAsyncResult..ctor(SoapHttpRouter parent, HttpContext httpContext, AsyncCallback callback,
     Object asyncState) in siteaddress\pagename.php:13 Stack trace: #0 siteaddress\pagename.php(13):
     SoapClient->__call('getPDF', Array) #1 siteaddress\pagename.php(13):
     SoapClient->getPDF(Array) #2 {main} thrown in siteaddress\pagename.php on line 13
    Thanks
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    There seems to ben an error in your header....

    I think installing soapui is a nice tool to test soap connections. It can create example messages from a given WSDL
    (http://sourceforge.net/projects/soapui/)

    Comment

    • waqasahmed996
      New Member
      • Jun 2008
      • 160

      #3
      thanx luuk. i will try and will back to you if i will feel any difficulty:) thanx again. is there any other solution?

      Comment

      • waqasahmed996
        New Member
        • Jun 2008
        • 160

        #4
        one thing it happens when i call a function. before calling a function i can see the list of functions. but when i call a function than that error appeared

        Comment

        • Luuk
          Recognized Expert Top Contributor
          • Mar 2012
          • 1043

          #5
          Sorry, my English is not good enough to understand what you mean.
          And i dont have enough information to guess... ;)

          Comment

          Working...