Hallo zusammen,
So, mein erster Beitrag hier Mal sehen ob das hier mein neues WebHome wird.
Folgend ein Ausschnitt aus einer WSDL:
Alles anzeigen
Und hier mein PHP dazu:
Alles anzeigen
Und hier die Teilausgabe wenn ich die PHP Datei aufrufe:
[faultstring] => Server was unable to process request. --> Object reference not set to an instance of an object. [faultcode] => soap:Server [detail] => )
Kann mir wer weiterhelfen?
Merci vorab,
Matthias
So, mein erster Beitrag hier Mal sehen ob das hier mein neues WebHome wird.
Folgend ein Ausschnitt aus einer WSDL:
Quellcode
- <s:element name="Send">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="faxData" type="tns:Outbound"/>
- <s:element minOccurs="0" maxOccurs="1" name="requestSettings" type="tns:RequestSettings"/>
- </s:sequence>
- </s:complexType>
- </s:element>
- <s:complexType name="Outbound">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="CustomerID" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Password" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="ConfirmationURL" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="CSID" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Sender" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Sendername" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Header" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Subject" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Body" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="BodyContentType" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Resolution" type="s:string"/>
- <s:element minOccurs="1" maxOccurs="1" name="TestMode" type="s:boolean"/>
- <s:element minOccurs="0" maxOccurs="1" name="Recipients" type="tns:ArrayOfOutboundRecipient"/>
- <s:element minOccurs="0" maxOccurs="1" name="Documents" type="tns:ArrayOfOutboundDocument"/>
- <s:element minOccurs="0" maxOccurs="1" name="Date" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Retries" type="s:string"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="ArrayOfOutboundRecipient">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="unbounded" name="OutboundRecipient" nillable="true" type="tns:OutboundRecipient"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="OutboundRecipient">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="TransactionID" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="Phone" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="ScheduleTime" type="s:string"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="ArrayOfOutboundDocument">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="unbounded" name="OutboundDocument" nillable="true" type="tns:OutboundDocument"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="OutboundDocument">
- <s:complexContent mixed="false">
- <s:extension base="tns:DocumentBase">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="TransferEncoding" type="s:string"/>
- </s:sequence>
- </s:extension>
- </s:complexContent>
- </s:complexType>
- <s:complexType name="DocumentBase" abstract="true">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="FileData" type="s:string"/>
- <s:element minOccurs="0" maxOccurs="1" name="ContentType" type="s:string"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="RequestSettings">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="DIMEDocuments" type="tns:DIMEDocuments"/>
- <s:element minOccurs="0" maxOccurs="1" name="SecurityMode" type="tns:SecurityRequest"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="DIMEDocuments">
- <s:complexContent mixed="false">
- <s:extension base="tns:DIMEConfiguration">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="SecretKeys" type="tns:ArrayOfSecretKey"/>
- </s:sequence>
- </s:extension>
- </s:complexContent>
- </s:complexType>
- <s:complexType name="DIMEConfiguration">
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="Chunked" type="s:boolean"/>
- <s:element minOccurs="1" maxOccurs="1" name="Encrypted" type="s:boolean"/>
- <s:element minOccurs="0" maxOccurs="1" name="EncryptionType" type="s:string"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="SecurityRequest">
- <s:complexContent mixed="false">
- <s:extension base="tns:DIMEConfiguration">
- <s:sequence>
- <s:element minOccurs="1" maxOccurs="1" name="UseDIME" type="s:boolean"/>
- <s:element minOccurs="1" maxOccurs="1" name="DigitallySigned" type="s:boolean"/>
- </s:sequence>
- </s:extension>
- </s:complexContent>
- </s:complexType>
- <s:complexType name="ArrayOfSecretKey">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="unbounded" name="SecretKey" nillable="true" type="tns:SecretKey"/>
- </s:sequence>
- </s:complexType>
- <s:complexType name="SecretKey">
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="Key" type="s:base64Binary"/>
- <s:element minOccurs="0" maxOccurs="1" name="IV" type="s:base64Binary"/>
- </s:sequence>
- </s:complexType>
Und hier mein PHP dazu:
Quellcode
- <?php
- $client = new SoapClient( "http://webservices.anbieter.net/fax/1.0/faxservice.asmx?WSDL",array("trace" => 1, "exceptions" => 0));
- $odocdet = array
- (
- "TransferEncoding" => "text/plain",
- "FileData" => "filedata part",
- "ContentType" => "text/plain"
- );
- $odetails = array
- (
- "TransactionID" => '',
- "Name" => "Receipt Name",
- "Phone" => "4989954398xxx",
- "ScheduleTime" => 'false'
- );
- $params = array
- (
- "customerID" => "xxxxxx",
- "Password" => "matze",
- "ConfirmationURL" => "mailto:matthias.orczak@anbieter.com",
- "CSID" => "CSID FIELD",
- "Sender" => "Sender Field",
- "Sendername" => "Sender Name",
- "Header" => "Header Field",
- "Subject" => "Subject Field",
- "Body" => "Body part",
- "BodyContentType" => "text/plain",
- "Resolution" => "Resolution part",
- "TestMode" => "true",
- "Recipients" => $odetails,
- "Documents" => $odocdet,
- "Date" => "Date string",
- "Retries" => "retries"
- );
- $res = $client->Send($params);
- print_r($res);
Und hier die Teilausgabe wenn ich die PHP Datei aufrufe:
[faultstring] => Server was unable to process request. --> Object reference not set to an instance of an object. [faultcode] => soap:Server [detail] => )
Kann mir wer weiterhelfen?
Merci vorab,
Matthias
Das Leben ist binär - du bist eine 1, oder eine 0