I am new to SOAP and trying to connect with Barnes and Noble Soap API using php5 built in soap works I am / P>
My question is, does anyone have any documents or experiences using Barnes and Noble system? I am going forward and forth with the support person and I feel as if they think we should be able to understand it.
The error I am receiving is "HTTP" and the error of the string "method is not allowed."
The person helping is saying what my title should be.
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Soaps: envelope xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xmlns: soap = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: xsd = "http : //www.w3.org/2001/XMLSchema "& gt; & Lt; Soap: Header & gt; & Lt; Session Interface xmlns = "http://tempuri.org/SessionInfoHeader" & gt; & Lt; User xmlns = "" & gt; Your username goes here & lt; / User & gt; & Lt; Password xmlns = "" & gt; Your password goes here. & Lt; / Password & gt; & Lt; / SessionInfo & gt; & Lt; / Soap: Header & gt;
It's nearly as close as I can get it.
& lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; SOAP-ENV: Envelope xmlns: SOAP-ENV = "http://schemas.xmlsoap.org/soap/envelope/" xmlns: ns1 = "http://tempuri.org" & gt; & Lt; Soap-ENV: Header & gt; & Lt; Ns1 also: SessionInfo & gt; & Lt; Items & gt; & Lt; Key & gt; SessionInfo & lt; / Key & gt; & Lt; Price & gt; & Lt; Items & gt; & Lt; Key & gt; Users & lt; / Key & gt; & Lt; Price & gt; [Username] & lt; / Value & gt; & Lt; / Item & gt; & Lt; Items & gt; & Lt; Key & gt; Password & lt; / Key & gt; & Lt; Price & gt; [Password] & lt; / Value & gt; & Lt; / Item & gt; & Lt; / Pricing & gt; & Lt; / Item & gt; & Lt; / Ns1 also: SessionInfo & gt; & Lt; / SOAP-ENV: Header & gt; & Lt; Soap-ENV: Body & gt; & Lt; SearchCriteria / & gt; & Lt; / SOAP-ENV: Body & gt; & Lt; / SOAP-ENV: envelope & gt;
I'm not even sure that this is a problem. Any help would be awesome.
To get the child nodes instead of adding the item key / value, give the parameter as an object Will happen.
$ client = new sudalipilit ('test.wsdl'); Class session inf $ {public $ user = 'test@example.com'; Public $ password = '12345'; } $ SessionInfo = New Sense InfoIn (); $ Soap_headers = New Softheader ('http://tempuri.org/SessionInfoHeader', 'Sessions Info', $ sessionInfo); $ Client- & gt; __SetSop Header ($ SOAP_HADERS);
It will show what support the man has done. I think you can also create an array and put it in an object, but I have not tried it yet.
Comments
Post a Comment