Based on some help from andrew i'm a bit closer but still at a loss for what the namespace s for this soap service. I'm trying to get the namespace so i can read the soap response headers so i can find out cookie information which i need to pass with future requests to remain "logged in"
any help would be appreciated. ok here's the soap returned after a successful login. any idea where the namespace is? <soapenv:envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:header> <sessioninfo xmlns="urn:messages_1_2.platform.webservices.netsuite.com"> <userid>11429</userid> </sessioninfo> </soapenv:header> <soapenv:body> <loginresponse xmlns="urn:messages_1_2.platform.webservices.netsuite.com"> <sessionresponse xmlns="urn:messages_1_2.platform.webservices.netsuite.com"> <ns1:status issuccess="true" xmlns:ns1="urn:core_1_2.platform.webservices.netsuite.com"> <ns2:wsrolelist xmlns:ns2="urn:core_1_2.platform.webservices.netsuite.com"> <ns2:wsrole> <ns2:role internalid="3"> <ns2:name>Administrator</ns2:name> </ns2:role> <ns2:isdefault>false</ns2:isdefault> <ns2:isinactive>false</ns2:isinactive> </ns2:wsrole> <ns2:wsrole> <ns2:role internalid="11"> <ns2:name>Store Manager</ns2:name> </ns2:role> <ns2:isdefault>false</ns2:isdefault> <ns2:isinactive>false</ns2:isinactive> </ns2:wsrole> </ns2:wsrolelist> </ns1:status> </sessionresponse> </loginresponse> </soapenv:body> </soapenv:envelope> On 3/9/06, Andrew Stevens <[EMAIL PROTECTED]> wrote: > > You might want to work thru the examples of GetSoapResponse() and > AddSoapResposeHeader(). http://www.techfeed.net/cfQuickDocs/ > > Of course, I couldn't call your web service :) But from the examples above, > you should dump the soap response to see all; > > <cfscript> > ws = CreateObject("webservice", > "http://localhost/soapheaders/headerservice.cfc?WSDL"); > ws.echo_me("hello world"); > resp = getSOAPResponse(ws); > </cfscript> > <cfdump var="#resp#"> > > This will reveal all the headers and namespaces etc. Then it's a bit of > trial and error to get the right ones in to getSoapResposeHeader(). > > Let me know if you do/don't get it working. > > Cheers. > > -----Original Message----- > From: jonese [mailto:[EMAIL PROTECTED] > Sent: Friday, 10 March 2006 5:27 AM > To: Andrew Stevens > Subject: Re: Soap and namespaces > > YES! > > jonese > > On 3/9/06, Andrew Stevens <[EMAIL PROTECTED]> wrote: > > > > Still trying? > > > > -----Original Message----- > > From: jonese [mailto:[EMAIL PROTECTED] > > Sent: Thursday, 9 March 2006 7:58 AM > > To: CF-Talk > > Subject: Soap and namespaces > > > > I'm trying to use the getSoapResponseHeader function to get some > > returned header data for a netsuite integration we are doing and for > > the life of me i can't get it to work to save my life. > > > > Anyone have any idea how to determine what the value of "namespace" is???? > > > > here's some code i'm playing with: > > <cfscript> > > passport = structNew(); > > passport.email = "[EMAIL PROTECTED]"; > > passport.password = "mypass"; > > passport.account = 00012; > > > > ws = CreateObject('webservice','NetSuite'); > > whatever = ws.login(passport); > > //soapResponse = getSoapResponse(ws); > > loginHeader = getSoapResponseHeader(ws, > > 'https://webservices.netsuite.com/', 'returnHeader'); > > </cfscript> > > > > here is the WSDL file: > > https://webservices.netsuite.com/wsdl/v1_2_1/netsuite.wsdl > > > > any ideas??? > > jonese > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235228 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

