Hm, nope that doesn't work - I tried it with and without the braces (and of
course using "OptCode" instead of "OptOut" as that's how the field is
defined in the WSDL).
Web service operation zAdvWebServOptOut with parameters
{[email protected],MYCODE}
cannot be found.
It produces this same error message even if I add additional arguments.

Now, if I dump the web service object, this is how it defines the  method...

zAdvWebServOptOut(functions.rfc.sap.document.sap_com.Char241,
functions.rfc.sap.document.sap_com.Char8)

If I pass two structs ... ws.zAdvWebServOptOut({whatever},{whatever}), I do
get a different error, it gives me an Axis Fault like this:

Cannot perform web service invocation zAdvWebServOptOut. The fault returned
when invoking the web service operation is:

org.apache.axis2.AxisFault: Email cannot be null!!

Still stumped :(


On Mon, Mar 4, 2013 at 11:43 PM, Byron Mann <[email protected]> wrote:

>
> Think you need one parameter with email and OptOut keys.
>
> <cfset wsResult = ws.zAdvWebServOptOut({Email='[email protected]
> ',OptOut=optcode} )>
>
> Byron Mann
> Lead Engineer & Architect
> HostMySite.com
> On Mar 4, 2013 8:53 PM, "Rick Root" <[email protected]> wrote:
>
> >
> > So I have this wonky SAP web service that I'm calling.. you can see an
> > example of the WSDL here:
> >
> > http://www.it.dev.duke.edu/public/wsdl.xml
> > http://www.it.dev.duke.edu/public/wsdl.txt
> >
> > I'm creating my wsdl object:
> >
> > <cfset argStruct = structNew()>
> > <cfset argStruct.username = "myusername">
> > <cfset argStruct.password = "mypassword">
> > <cfset argStruct.refreshWSDL = "yes">
> > <cfset argStruct.saveJava = "no">
> >  <cfset ws = createObject("webservice","#wsdlurl#", argStruct)>
> >
> > And then calling the web service like this:
> >
> > <cfset wsResult = ws.zAdvWebServOptOut('[email protected]
> > ','#optcode#','','')>
> >
> > This was working fine, but now produces the following error:
> >
> > Web service operation zAdvWebServOptOut with parameters
> > {[email protected],UDVAE,,}
> > cannot be found.
> >
> > Now, I never quite understood how this worked before, given the way the
> > wsdl looks.  I have since tried several combinations - passing only two
> > arguments (as I would expect), and passing the 4th argument as an int
> (0),
> > to no avail, always the same ol' error (just slightly different actually,
> > based on the arguments being passed).
> >
> > I'm a little stumped here.
> >
> > Anyone got any suggestions?
> >
> > Rick
> >
> >
> >
> >
> > --
> > *The beatings will continue until morale improves.*
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354801
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to