• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
XML SOAP Request with CFWebServices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

XML SOAP Request with CFWebServices


  • Subject: XML SOAP Request with CFWebServices
  • From: "Chris Ulliott" <email@hidden>
  • Date: Sat, 18 Feb 2006 15:07:39 -0000
  • Importance: Normal

Title: Message
Hi all,
 
Can anyone tell me how to add a xmlns:tns="xxxxxxxxx" and a xmlns:types="xxxxxxxx" to my web services soap invocation please?
 
I have the following code:
 
// Create the invocation
url = "" server, kCFEncodingASCII);
refInvocation = WSMethodInvocationCreate(url, methodname, kWSSOAP2001Protocol);
 
// Add my 1 parameter
paramnames[0] = cfsParam;
paramvalues[0] = cfsValue;
dictParameters = CFDictionaryCreate(......);
WSMethodInvocationSetParameters(refInvocation, dictParameters, NULL);
 
// Setup soap action
paramnames[0] = cfsSoapActName;
paramvalues[0] = cfsSoapActValue;
dictProperty = CFDictionaryCreate(......);
WSMethodInvocationSetProperty(refInvocation, kWSHTTPExtraHeaders, dictProperty);
 
// ** NOTE I thought I could add them to the above dictionary but if I do
// ** that they still dont appear in the outgoing XML.
 
// I also tried the following...
paramnames[0] = .... // = "tns"
paramvalues[0] = .... // = "xxxxxxxxx"
WSMethodInvocationSetProperty(refInvocation, paramnames[0], paramvalues[0]);
// But this still doesnt appear in the outgoing XML.
 
// Next i set the default namespace uri
WSMethodInvocationSetProperty(refInvocation, kWSSOAPMethodNamespaceURI, cfsNameSpace);
 
// Set encoding style
WSMethodInvocationSetProperty(refInvocation, kWSSOAPBodyEncodingStyle, kWSSOAPStyleRPC);
 
// Set debug outgoing XML
WSMethodInvocationSetProperty(refInvocation, kWSDebugOutgoingBody, kCFBooleanTrue);
 
// Now invoke the call
dictResult = WSMethodInvocationInvoke(refInvocation);
 
So... How can I add my xmlns:tns="xxxxxxxxx" and xmlns:types="xxxxxxxx". The reason I need to do this is because the XML body that I get back (in a CFDictionary) is incomplete - It is only 6 pages of XML when dumped but im expecting more like 16!
 
Thanks in advance,
Jammy
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re(2): Not able to get success with setsockopt
  • Next by Date: Re: Re(2): Not able to get success with setsockopt
  • Previous by thread: Re: Re(2): Not able to get success with setsockopt
  • Next by thread: How to broadcast a message in Mac OS X
  • Index(es):
    • Date
    • Thread