johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

WrappedException: Operation.output got more than one element #7

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We're trying to use WSC-GAE-16_0 to parse another WSDL.  It's working great 
for our Salesforce enterprise WSDL, but failing with the following error on 
our other one.

What steps will reproduce the problem?
1. Run the command:
C:\tools\GAE>java -classpath wsc-gae-16_0.jar com.sforce.ws.tools.wsdlc 
other.wsdl other-library.jar

What is the expected output? What do you see instead?

Expect it to parse the WSDL correctly.

Due to:org.mozilla.javascript.WrappedException: Wrapped 
java.lang.IllegalArgumentException: Operation.output got more than one 
element:com.sforce.ws.wsdl.Operation@6cb8 (<template>#59)
Exception in thread "main" org.mozilla.javascript.WrappedException: Wrapped 
java.lang.IllegalArgumentException: Operation.output got more than one 
element:com.sforce.ws.wsdl.Operation@6cb8 (<template>#59)
        at 
org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:16
93)
        at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)
        at 
org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:20
1)
        at 
org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:64)

        at org.mozilla.javascript.gen.c17._c0(<template>:59)
        at org.mozilla.javascript.gen.c17.call(<template>)
        at 
org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:3
37)
        at 
org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:275

What version of the product are you using? On what operating system?

Windows Professional Edition

Environment:: java -version 
java version "1.6.0_06" 
Java(TM) SE Runtime Environment (build 1.6.0_06-b02) 
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing) 

Original issue reported on code.google.com by cloudcon...@gmail.com on 20 Jul 2009 at 11:36

GoogleCodeExporter commented 8 years ago
WSC only supports doc/literal/wrapped style of service. To unwrap response of a 
web
service, the output type should only have one element in it.

Original comment by manoj.ch...@gmail.com on 23 Jul 2009 at 12:05

GoogleCodeExporter commented 8 years ago

Original comment by manoj.ch...@gmail.com on 6 Apr 2010 at 11:13