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',
                 )
                );
    after this i am able to see a list of function using
    Code:
    var_dump($client->__getFunctions());
    but when i call any function error appears

    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
    any help will be greatly appreciated
  • Luuk
    Recognized Expert Top Contributor
    • Mar 2012
    • 1043

    #2
    why do you restart this subject which you asked about here:

    Comment

    • waqasahmed996
      New Member
      • Jun 2008
      • 160

      #3
      because i modify important text. problem occur not before but when i call a function

      Comment

      • Luuk
        Recognized Expert Top Contributor
        • Mar 2012
        • 1043

        #4
        posting the content of "exampleaddress .wsdl" might be of more help to people who want to help....

        And what sort of code is this referring to?:
        ...siteaddress\ pagename.php:13 ...

        Comment

        • waqasahmed996
          New Member
          • Jun 2008
          • 160

          #5
          i paste same code except real site name and page name. real site name is not allowed here. please if you have some info about problem then let me know or something you didnt understand.for any discussion not related to problem you can send me private message

          Comment

          Working...