WSDl SOAP request In php

When i send multiple parameter the error is sowing same .
When i cheked in soapUI with same parameter then it will give me other type error . 
error of soap UI is given below
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <commBRIDGEFusionMOTORResponse xmlns="http://tempuri.org/">
         <commBRIDGEFusionMOTORResult>Invalid Document Type.</commBRIDGEFusionMOTORResult>
      </commBRIDGEFusionMOTORResponse>
   </s:Body>
</s:Envelope>

It might also be that the type of SOAP call you’re trying to do can’t be done with PHP’s SoapClient. You’d have to investigate further to check that.

May Be But how to work properly with SoapUi

I don’t know what SoapUI is so I don’t know.

So could you suggest me that what should i do .

<offtopic>
@deepinfotrench there is no need to format your entire post - it’s only code that needs to be formatted as code!
</offtopic>

1 Like
stdClass Object
(
    [commBRIDGEFusionMOTORResult] => System.ArgumentNullException: Value cannot be null.
Parameter name: s
   at System.IO.StringReader..ctor(String s)
   at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
   at System.Xml.Linq.XDocument.Parse(String text)
   at WebAggWCFService.Service1.commBRIDGEFusionMOTOR(String strXdoc) in c:\WebAggAppUAT\WebAggWCFService\App_Code\Service1.cs:line 59
)

Can you solve this type error

no .

Code not working it return me null value

$url = "http://14.141.41.53:800/WebAggWCFUAT/Service1.svc?wsdl";
            $options = array(
                "trace" => 1,
                "exception" => 0
            );
            $clinet = new SoapClient($url, $options);
            $content = '<Authentication>
		 <WACode>fgh</WACode>
  		<WAAppCode>fgh</WAAppCode>
		<WAUserID>fgh</WAUserID>
		<WAUserPwd>fgh@123</WAUserPwd>
		<WAType>0</WAType>
		<DocumentType>Proposal</DocumentType>
		<Versionid>1.1</Versionid>
		<GUID />
	</Authentication>
	<PaymentDetails>
		<PaymentEntry>
			<PaymentId />
			<MICRCheque />
			<InstrumentDate />
			<DraweeBankName />
			<HOUSEBANKNAME />
			<AmountPaid />
			<PaymentType />
			<PaymentDate />
			<PaymentMode />
			<InstrumentNo />
			<Status />
			<DepositSlipNo />
			<PayerType />
		</PaymentEntry>
	</PaymentDetails>
	<Errors>
		<ErrorCode />
		<ErrDescription />
	</Errors>';
            $result = $clinet->commBRIDGEFusionMOTOR($content);

ERROR :

stdClass Object
(
    [commBRIDGEFusionMOTORResult] => System.ArgumentNullException: Value cannot be null.
Parameter name: s
   at System.IO.StringReader..ctor(String s)
   at System.Xml.Linq.XDocument.Parse(String text, LoadOptions options)
   at System.Xml.Linq.XDocument.Parse(String text)
   at WebAggWCFService.Service1.commBRIDGEFusionMOTOR(String strXdoc) in c:\WebAggAppUAT\WebAggWCFService\App_Code\Service1.cs:line 59
)

ask the provider of that API.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.