Jump to content

Search the Community

Showing results for tags 'soapcall soap'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. WSDL <wsdl:definitions targetNamespace="BLANKED"><wsdl:types><s:schema elementFormDefault="qualified" targetNamespace="BLANKED"><s:element name="GetPlatformByUserAgent"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="pUserAgent" type="s:string"/></s:sequence></s:complexType></s:element><s:element name="GetPlatformByUserAgentResponse"><s:complexType><s:sequence><s:element minOccurs="0" maxOccurs="1" name="GetPlatformByUserAgentResult" type="s:string"/></s:sequence></s:complexType></s:element></s:schema></wsdl:types><wsdl:message name="GetPlatformByUserAgentSoapIn"><wsdl:part name="parameters" element="tns:GetPlatformByUserAgent"/></wsdl:message><wsdl:message name="GetPlatformByUserAgentSoapOut"><wsdl:part name="parameters" element="tns:GetPlatformByUserAgentResponse"/></wsdl:message><wsdl:portType name="WebSiteServicesSoap"><wsdl:operation name="GetPlatformByUserAgent"><wsdl:input message="tns:GetPlatformByUserAgentSoapIn"/><wsdl:output message="tns:GetPlatformByUserAgentSoapOut"/></wsdl:operation></wsdl:portType><wsdl:binding name="WebSiteServicesSoap" type="tns:WebSiteServicesSoap"><soap:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="GetPlatformByUserAgent"><soap:operation soapAction="http://BLANK/GetPlatformByUserAgent" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="WebSiteServicesSoap12" type="tns:WebSiteServicesSoap"><soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/><wsdl:operation name="GetPlatformByUserAgent"><soap12:operation soapAction="http://BLANK/GetPlatformByUserAgent" style="document"/><wsdl:input><soap12:body use="literal"/></wsdl:input><wsdl:output><soap12:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="WebSiteServices"><wsdl:port name="WebSiteServicesSoap" binding="tns:WebSiteServicesSoap"><soap:address location="http://BLANK/WebSiteServices.asmx"/></wsdl:port><wsdl:port name="WebSiteServicesSoap12" binding="tns:WebSiteServicesSoap12"><soap12:address location="http://BLANK/WebSiteServices.asmx"/></wsdl:port></wsdl:service></wsdl:definitions> Code I am using <?php class GetPlatformByUserAgent{ public $useragent = 1234 ; //$a = $_SERVER['HTTP_USER_AGENT']; }; $client = new SoapClient("http://BLANK.asmx?wsdl"); $response = $client->GetPlatformByUserAgent("Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)"); echo $response ?> Error I get ( ! ) Fatal error: Uncaught SoapFault exception: [soap:Server] Server was unable to process request. ---> Object reference not set to an instance of an object. in C:\wamp\websites\projects\soap\test.php:7 Stack trace: #0 C:\wamp\websites\projects\soap\test.php(7): SoapClient->__call('GetPlatformByUs...', Array) #1 C:\wamp\websites\projects\soap\test.php(7): SoapClient->GetPlatformByUserAgent('Mozilla/4.0 (co...') #2 {main} thrown in C:\wamp\websites\projects\soap\test.php on line 7 Any ideas where I am going wrong as I'm new to SOAP calls?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.