Error in generated webservice client
Hello all,
I've been working on some webservice that receives large attachments, and my eye fell on the "streaming attachments" functionality of oc4j 10.1.3. So I've followed the examples of the "Oracle Application server Web Services Developer's Guide" pdf, assembled my webservice and deployed it. No problem so far. So, intent on testing my fresh service, I took the wsdl that was generated and used the WebserviceAssembler to generate a clientwith the genProxy command.
However, everytime I try to run the client I get the following error:
java.rmi.RemoteException: Error parsing envelope: (1, 1) Start of root element expected.; nested exception is:
javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
at com.xplanation.workflow.soap.runtime.HttpSoap11Binding_Stub.launch(HttpSoap11Binding_Stub.java:124)
at com.xplanation.workflow.soap.ProjectLaunchPortClient.launch(ProjectLaunchPortClient.java:74)
at com.xplanation.workflow.soap.ProjectLaunchPortClient.main(ProjectLaunchPortClient.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:93)
at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:75)
at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:678)
at oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:662)
at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:634)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:194)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:110)
at com.xplanation.workflow.soap.runtime.HttpSoap11Binding_Stub.launch(HttpSoap11Binding_Stub.java:96)
... 7 more
Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:328)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:290)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:199)
at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:67)
... 14 more
Is there any way to check the SOAP message that is being sent? Maybe I'm initializing the Attachments incorrectly?
Here's the code I use for that...
DataSource dataSource = new InputStreamDataSource("application/octet-stream", new FileInputStream(file));
dataHandler = new DataHandler(dataSource);
att = new AttachmentImpl(file.getName(), dataHandler);
System.out.println(" - attachment created for " + att.getId());
// att = factory.createAttachment(file.getName(), "application/octet-stream", new FileInputStream(file));
atts.getOutgoingAttachments().addAttachment(att);
Finding documentation about these streaming attachments is such a drag, that I'm considering switching to MIME or DIME. Does anyone have any suggestions? Keep in mind that I'll have to deal with possibly large files (certainly up to 20MB)...
Regards,
Stan
Thought I'd add the generated WSDL file...
Thanks in advance for any replies!
<?xml version = '1.0' encoding = 'UTF-8'?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://soap.workflow.xplanation.com/" name="projectlaunch" targetNamespace="http://soap.workflow.xplanation.com/">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://soap.workflow.xplanation.com/" elementFormDefault="qualified">
<complexType name="launch">
<sequence>
<element name="processCode" type="string" nillable="true"/>
<element name="processType" type="string" nillable="true"/>
<element name="projectTitle" type="string" nillable="true"/>
<element name="projectNumber" type="string" nillable="true"/>
<element name="docTypeCode" type="string" nillable="true"/>
<element name="domainCode" type="string" nillable="true"/>
<element name="sourceLanguage" type="string" nillable="true"/>
<element name="targetLanguages" type="string" nillable="true" minOccurs="0" maxOccurs="unbounded"/>
<element name="dueDate" type="string" nillable="true"/>
<element name="userLogin" type="string" nillable="true"/>
<element name="password" type="string" nillable="true"/>
</sequence>
</complexType>
<complexType name="launchResponse">
<sequence>
<element name="result" type="int" nillable="true"/>
</sequence>
</complexType>
<complexType name="IOException">
<sequence>
<element name="message" type="string" nillable="true"/>
</sequence>
</complexType>
<element name="launchElement" type="tns:launch"/>
<element name="launchResponseElement" type="tns:launchResponse"/>
<element name="IOExceptionElement" type="tns:IOException"/>
</schema>
</types>
<message name="StreamedProjectLaunch_launchResponse">
<part name="parameters" element="tns:launchResponseElement"/>
</message>
<message name="StreamedProjectLaunch_launch">
<part name="parameters" element="tns:launchElement"/>
</message>
<message name="IOException">
<part name="IOExceptionElement" element="tns:IOExceptionElement"/>
</message>
<portType name="StreamedProjectLaunch">
<operation name="launch">
<input message="tns:StreamedProjectLaunch_launch"/>
<output message="tns:StreamedProjectLaunch_launchResponse"/>
<fault name="IOException" message="tns:IOException"/>
</operation>
</portType>
<binding name="HttpSoap11Binding" type="tns:StreamedProjectLaunch">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="launch">
<soap:operation soapAction="http://soap.workflow.xplanation.com//launch"/>
<sa:stream-attachments xmlns:sa="http://oracle.com/schemas/webservices/streaming-attachments" name="attachments"/>
<input>
<soap:body use="literal" parts="parameters"/>
</input>
<output>
<soap:body use="literal" parts="parameters"/>
</output>
<fault name="IOException">
<soap:fault name="IOException" use="literal" encodingStyle=""/>
</fault>
</operation>
</binding>
<service name="projectlaunch">
<port name="ProjectLaunchPort" binding="tns:HttpSoap11Binding">
<soap:address location="http://localhost:8888/projectlaunch/projectlaunch"/>
</port>
</service>
</definitions>
Similar Messages
-
Problem running ClientGen generated webservice client
I'm using Workshop for Weblogic 10.3 and I'm trying to generate a webservice client. When I generate it with ClientGen and I try to use it I get the following error:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: weblogic/j2ee/descriptor/ServiceRefHandlerBean
at weblogic.wsee.jaxrpc.HandlerRegistryImpl.<init>(HandlerRegistryImpl.java:32)
at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:88)
at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
at testClient.main(testClient.java:18)
If I add the com.bea.core.descriptor.j2ee_1.1.0.0.jar to the libraries then I get the following error:
Exception in thread "Main Thread" java.lang.NoClassDefFoundError: com/sun/xml/ws/util/JAXWSUtils
at weblogic.wsee.util.is.InputSourceUtil.loadURL(InputSourceUtil.java:44)
at weblogic.wsee.util.dom.DOMParser.getWebLogicDocumentImpl(DOMParser.java:118)
at weblogic.wsee.util.dom.DOMParser.getDocument(DOMParser.java:65)
at weblogic.wsee.wsdl.WsdlReader.getDocument(WsdlReader.java:311)
at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:403)
at weblogic.wsee.wsdl.WsdlDefinitions.parse(WsdlDefinitions.java:389)
at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:79)
at weblogic.wsee.wsdl.WsdlFactory.parse(WsdlFactory.java:66)
at weblogic.wsee.jaxrpc.ServiceImpl.loadWsdlDefinition(ServiceImpl.java:476)
at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:119)
at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
at com_service_osadia_interface.wovenware.SERVICE_OSADIA_Impl.<init>(Unknown Source)
at testClient.main(testClient.java:18)
How can I fix it?I didn't see a mistake, but my sample works fine. Are you trying to execute the client from Workshop / Eclipse? If that is the case, then I believe it's a matter of just using the appropriate client libraries, which I believe is your issue even though the error is misleading. You should definitely try using a Java Project for a stand-alone web service invocation. According to this link: http://edocs.bea.com/wls/docs103/webserv_rpc/client.html#wp229351 you simply need 1 jar file named wseeclient.jar on your path, which is archived inside <WL_INSTALL>\wlserver_10.3\server\lib\wseeclient.zip
Once I set up a new Java Project with wseeclient.jar on my path and my clientgen generated classes, I could invoke the sample.
Also, here is what the successful invocation from the command line using (ant build, ant deploy, ant run):
C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple>ant build
Buildfile: build.xml
clean:
[delete] Deleting directory C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar
[delete] Deleting directory C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
server:
[mkdir] Created dir: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar
[jwsc] JWS: processing module /SimpleImpl
[jwsc] Parsing source files
[jwsc] Parsing source files
[jwsc] 1 JWS files being processed for module /SimpleImpl
[jwsc] JWS: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple\SimpleImpl.java Validated.
[jwsc] Since compiler setting isn't classic or modern,ignoring fork setting.
[jwsc] Compiling 2 source files to C:\temp\_x58sqp
[jwsc] Since compiler setting isn't classic or modern,ignoring fork setting.
[jwsc] Copying 1 file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl\WEB-INF
[jwsc] Copying 22 files to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl\WEB-INF
[jwsc] Copying 2 files to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl\WEB-INF\classes
[jwsc] Copying 1 file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\SimpleImpl
[jwsc] [EarFile] Application File : C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar\META-INF\application.xml
[AntUtil.deleteDir] Deleting directory C:\temp\_x58sqp
client:
[mkdir] Created dir: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
[clientgen] Ignoring JAX-WS options - building a JAX-RPC client
[clientgen]
[clientgen] *********** jax-rpc clientgen attribute settings ***************
[clientgen]
[clientgen] wsdlURI: file:/C:/Oracle/wls10.3/wlserver_10.3/samples/server/examples/build/webservicesJwsSimpleEar/SimpleImpl/WEB-INF/SimpleImplService.wsdl
[clientgen] serviceName : null
[clientgen] packageName : examples.webservices.jws_basic.simple.client
[clientgen] destDir : C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
[clientgen] handlerChainFile : null
[clientgen] generatePolicyMethods : false
[clientgen] autoDetectWrapped : true
[clientgen] jaxRPCWrappedArrayStyle : true
[clientgen] generateAsyncMethods : true
[clientgen]
[clientgen] *********** jax-rpc clientgen attribute settings end ***************
[clientgen] Package name is examples.webservices.jws_basic.simple.client
[clientgen] DestDir is C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
[clientgen] class name is Simple_Stub
[clientgen] service class name is SimpleImplService
[clientgen] Porttype name is Simple
[clientgen] service impl name is SimpleImplService_Impl
[javac] Compiling 4 source files
[javac] Note: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client\examples\webservices\jws_basic\simple\client\Simple_Stub.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] Compiling 1 source file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\clientclasses\webservicesJwsSimple_client
[jar] Updating jar: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\examplesWebApp\WEB-INF\lib\jws_basic_simple.jar
[copy] Copying 1 file to C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\examplesWebApp
build:
BUILD SUCCESSFUL
Total time: 22 seconds
C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple>ant deploy
Buildfile: build.xml
deploy:
[wldeploy] weblogic.Deployer -verbose -noexit -source C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar -targets examplesServer -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
[wldeploy] weblogic.Deployer invoked with options: -verbose -noexit -source C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJwsSimpleEar -targets examplesServer -adminurl t3://localhost:7001 -user weblogic -deploy
[wldeploy] <Dec 23, 2008 2:48:19 PM CST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating deploy operation for application, webservicesJwsSimpleEar [archive: C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\build\webservicesJws
SimpleEar], to examplesServer .>
[wldeploy] Task 0 initiated: [Deployer:149026]deploy application webservicesJwsSimpleEar on examplesServer.
[wldeploy] Task 0 completed: [Deployer:149026]deploy application webservicesJwsSimpleEar on examplesServer.
[wldeploy] Target state: deploy completed on Server examplesServer
[wldeploy]
[wldeploy] Target Assignments:
[wldeploy] + webservicesJwsSimpleEar examplesServer
BUILD SUCCESSFUL
Total time: 9 seconds
C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple>ant run
Buildfile: build.xml
run:
[java] Got result: Here is the message: 'Hi there!'
BUILD SUCCESSFUL
Total time: 7 seconds
C:\Oracle\wls10.3\wlserver_10.3\samples\server\examples\src\examples\webservices\jws_basic\simple> -
Unknown namespace error when generating a client proxy
We are using WAS 7.0 and I'm trying to generate a client proxy for an inhouse webservice via Object Navigator (SE80). When using the Wizard I get an error message from the Librabry Handler saying: "Unknown namespace: http://schemas.xmlsoap.org/soap/encoding".
A check by the colleagues who provide this Webservice says that the wsdl is ok.
Any idea for this error message?
Many Thanks.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://saphrmitarbeiterdaten.de.tnt.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://saphrmitarbeiterdaten.de.tnt.com" xmlns:intf="http://saphrmitarbeiterdaten.de.tnt.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Aug 08, 2005 (11:49:10 PDT)-->
<wsdl:types>
<schema targetNamespace="http://saphrmitarbeiterdaten.de.tnt.com" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="SAPHRMitarbeiterDatenMitarbeiter">
<sequence>
<element name="Bukrs" nillable="true" type="xsd:string"/>
<element name="Werks" nillable="true" type="xsd:string"/>
<element name="Kostl1" nillable="true" type="xsd:string"/>
<element name="Kostl2" nillable="true" type="xsd:string"/>
<element name="Persk" nillable="true" type="xsd:string"/>
<element name="Pernr" nillable="true" type="xsd:string"/>
<element name="Nachn" nillable="true" type="xsd:string"/>
<element name="Vorna" nillable="true" type="xsd:string"/>
<element name="Eintr" nillable="true" type="xsd:string"/>
<element name="Austr" nillable="true" type="xsd:string"/>
<element name="Sacha" nillable="true" type="xsd:string"/>
<element name="Sachn" nillable="true" type="xsd:string"/>
<element name="IAKen" nillable="true" type="xsd:string"/>
<element name="IABeg" nillable="true" type="xsd:string"/>
<element name="IAEnd" nillable="true" type="xsd:string"/>
<element name="Level" nillable="true" type="xsd:string"/>
<element name="Stelle" nillable="true" type="xsd:string"/>
<element name="Abtlg" nillable="true" type="xsd:string"/>
<element name="Mgr_Pernr" nillable="true" type="xsd:string"/>
<element name="Mgr_Name" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ArrayOfSAPHRMitarbeiterDatenMitarbeiter">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="impl:SAPHRMitarbeiterDatenMitarbeiter[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="ReadDataResponse">
<wsdl:part name="ReadDataReturn" type="impl:ArrayOfSAPHRMitarbeiterDatenMitarbeiter"/>
</wsdl:message>
<wsdl:message name="ReadDataRequest">
<wsdl:part name="in0" type="xsd:string"/>
<wsdl:part name="in1" type="xsd:string"/>
<wsdl:part name="in2" type="xsd:string"/>
<wsdl:part name="in3" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="SAPHRMitarbeiterDatenRead">
<wsdl:operation name="ReadData" parameterOrder="in0 in1 in2 in3">
<wsdl:input message="impl:ReadDataRequest" name="ReadDataRequest"/>
<wsdl:output message="impl:ReadDataResponse" name="ReadDataResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SAPHRMitarbeiterDatenReadSoapBinding" type="impl:SAPHRMitarbeiterDatenRead">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="ReadData">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="ReadDataRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://saphrmitarbeiterdaten.de.tnt.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="ReadDataResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://saphrmitarbeiterdaten.de.tnt.com" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SAPHRMitarbeiterDatenReadService">
<wsdl:port binding="impl:SAPHRMitarbeiterDatenReadSoapBinding" name="SAPHRMitarbeiterDatenRead">
<wsdlsoap:address location="http://194.55.55.58:7001/SAPHRMitarbeiterDatenWebservice/services/SAPHRMitarbeiterDatenRead"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>Hi Michael,
the use of soapenc:Array is not supported. There are other ways to declare arrays:
-In a DESCRIPTION, array declarations MUST NOT extend or restrict the soapenc:Array type.
-In a DESCRIPTION, array declarations MUST NOT use wsdl:arrayType attribute in the type declaration.
-In a DESCRIPTION, array declaration wrapper elements SHOULD NOT be named using the convention ArrayOfXXX.
-A MESSAGE containing serialized arrays MUST NOT include the soapenc:arrayType attribute.
So you need to copy the WSDL file to a local file and edit it, afterwards, use it to generate the proxy.
Maybe you should have a look at the following url:
http://www.ws-i.org/Profiles/BasicProfile-1.0-2004-04-16.html#refinement16556272
I hope this will help you to solve the problem.
Edited by: Duhan Bernhard on Nov 7, 2008 12:29 PM -
Error while generating webservices using Date
I am facing the following problem while generating a web service which is having Date as one its members.
I have serialized a class with the following DataStructure
private String rowId1;
private Date created;
private String name;
private String quoteNum;
private String revNum;
private String curcyCd;
private String activeFlg;
private Number discntAmt;
private Number discntPercent;
When i tried to expose this as webservice, If I use the class oracle.jbo.domain.Date for Date type, the webservice is not generated properly. It is not including the method which contains this call. ie) This method is not present in the WSDL file as well as in the proxy.
When I used java.util.Date instead of oracle.jbo.domain.Date, I am able to expose the method and webservice got generated properly. But When i tried to generate the proxy for the WSDL in the consumer, I go the following error.
oracle.jdeveloper.webservices.model.GenerationException: Proxy generation failed for the following reason:
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.doGeneration(ProxyGenerator.java:608)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.generateImpl(ProxyGenerator.java:365)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.mav$generateImpl(ProxyGenerator.java:77)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator$1ThrowingRunnable.run(ProxyGenerator.java:206)
at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.RuntimeException: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}dateTime" and Java type "java.lang.String"
at oracle.j2ee.ws.common.processor.Processor.runActions(Processor.java:105)
at oracle.j2ee.ws.tools.wsa.AssemblerTool.run(AssemblerTool.java:99)
at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createProxy(WsdlToJavaTool.java:354)
at oracle.j2ee.ws.tools.wsa.Util.createProxy(Util.java:838)
at oracle.jdeveloper.webservices.model.proxy.ProxyGenerator.doGeneration(ProxyGenerator.java:549)
... 6 more
Caused by: generator error: no encoder for type "{http://www.w3.org/2001/XMLSchema}dateTime" and Java type "java.lang.String"
at oracle.j2ee.ws.common.processor.generator.GeneratorBase.doGeneration(GeneratorBase.java:181)
at oracle.j2ee.ws.common.processor.generator.GeneratorBase.perform(GeneratorBase.java:137)
at oracle.j2ee.ws.common.processor.Processor.runActions(Processor.java:97)
... 10 more
I am referring to "Entity and view objects based on web service " in the following URL
http://radio.weblogs.com/0118231/stories/2004/09/23/notYetDocumentedAdfSampleApplications.html#93
Thanks and Regards,
JamesHi all,
I have applied the consolidated JRI fixes - patch 17191279 .
Then, when generating Jar, received keypass is tampered error.
re-generated the key using $ adjkey -initialize.
Now, its working fine.
Regards,
Krish. -
Error while generating java client code from wsdl file
I am trying to generate a java client code from WSDL file um_workflowSaveCreateProfile.wsdl which includes um_workflowSaveCreateProfile_interface.wsdl file, so I am keeping both the files in the same folder and trying to generate the client code but it is showing me the below error highlighted .
um_workflowSaveCreateProfile.wsdl
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="E:/DIPPWF/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:oblix="http://www.oblix.com/" xmlns:obinterface="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile_interface" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile" targetNamespace="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile">
<import namespace="D:/DIPP/WSDL/um_workflowSaveCreateProfile_interface" location="um_workflowSaveCreateProfile_interface.wsdl"/>
<service name="OblixIDXML_um_workflowSaveCreateProfile_Service">
<port name="OblixIDXML_um_workflowSaveCreateProfile_Port" binding="obinterface:OblixIDXML_um_workflowSaveCreateProfile_Binding">
<soap:address location="http://localhost:7777/identity/oblix/apps/userservcenter/bin/userservcenter.cgi"/>
</port>
</service>
</definitions>
um_workflowSaveCreateProfile_interface.wsdl
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:oblix="http://www.oblix.com/" xmlns:oblixxmllocalschema="http://www.oblix.com/OblixXMLLocalSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile_interface" targetNamespace="http://www.oblix.com/wsdl/um_workflowSaveCreateProfile_interface">
<types>
<xsd:schema targetNamespace="http://www.oblix.com/" elementFormDefault="qualified"
xmlns="http://www.oblix.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:include schemaLocation="../XMLSchema/common_parameters.xsd" />
<xsd:include schemaLocation="../XMLSchema/common_authentication.xsd" />
<xsd:include schemaLocation="../XMLSchema/workflowSaveCreateProfile.xsd" />
</xsd:schema>
<xsd:schema targetNamespace="http://www.oblix.com/OblixXMLLocalSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="request">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="params">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="oblix:ObWorkflowName"/>
<xsd:element ref="oblix:ObDomainName"/>
<xsd:element ref="oblix:ObWfComment" minOccurs="0"/>
<xsd:element ref="oblix:noOfFields"/>
<xsd:element ref="oblix:AttributeParams"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="version" type="xsd:string" use="optional"/>
<xsd:attribute name="application" type="xsd:string" use="required" />
<xsd:attribute name="function" type="xsd:string" use="required" />
<xsd:attribute name="mode" type="xsd:string" use="optional"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
</types>
<message name="OblixIDXMLInput">
<part name="authentication" element="oblix:authentication"/>
<part name="request" element="oblixxmllocalschema:request"/>
</message>
<message name="OblixIDXMLOutput">
<part name="body" element="oblix:Oblix"/>
</message>
<portType name="OblixIDXMLPortType">
<operation name="OblixIDXML_um_workflowSaveCreateProfile">
<input message="tns:OblixIDXMLInput"/>
<output message="tns:OblixIDXMLOutput"/>
</operation>
</portType>
<binding name="OblixIDXML_um_workflowSaveCreateProfile_Binding" type="tns:OblixIDXMLPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="OblixIDXML_um_workflowSaveCreateProfile">
<soap:operation soapAction="http://www.oblix.com/"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
</definitions>
I am using WSDL2 Java for generating the client code .
Please suggest where am I wrong .
E:\axis2-1.4\bin>WSDL2Java -uri E:\DIPPWF\um_workflowSaveCreateProfile.wsdl -p R
ND -d adb -s -o build\client--http-proxy-host 10.74.93.35 --http-proxy-port 80
Using AXIS2_HOME: E:\axis2-1.4
Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_02
Retrieving document at 'E:\DIPPWF\um_workflowSaveCreateProfile.wsdl'.
Retrieving document at 'um_workflowSaveCreateProfile_interface.wsdl', relative t
o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile.wsdl'.
Retrieving schema at 'E:/DIPPWF/XMLSchema/common_parameters.xsd', relative to 'f
ile:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
Retrieving schema at 'E:/DIPPWF/XMLSchema/common_authentication.xsd', relative t
o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
Retrieving schema at 'E:/DIPPWF/XMLSchema/workflowSaveCreateProfile.xsd', relati
ve to 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
Retrieving schema at 'navbar.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/workfl
owSaveCreateProfile.xsd'.
Retrieving schema at 'searchform.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/wo
rkflowSaveCreateProfile.xsd'.
Retrieving schema at 'component_basic.xsd', relative to 'file:/E:/DIPPWF/XMLSche
ma/workflowSaveCreateProfile.xsd'.
Retrieving schema at 'displaytype.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/c
omponent_basic.xsd'.
Retrieving schema at 'error.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/compone
nt_basic.xsd'.
Retrieving schema at 'component_workflowTicket.xsd', relative to 'file:/E:/DIPPW
F/XMLSchema/workflowSaveCreateProfile.xsd'.
Retrieving document at 'E:\DIPPWF\um_workflowSaveCreateProfile.wsdl'.
Retrieving document at 'um_workflowSaveCreateProfile_interface.wsdl', relative t
o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile.wsdl'.
Retrieving schema at 'E:/DIPPWF/XMLSchema/common_parameters.xsd', relative to 'f
ile:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
Retrieving schema at 'E:/DIPPWF/XMLSchema/common_authentication.xsd', relative t
o 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
Retrieving schema at 'E:/DIPPWF/XMLSchema/workflowSaveCreateProfile.xsd', relati
ve to 'file:/E:/DIPPWF/um_workflowSaveCreateProfile_interface.wsdl'.
Retrieving schema at 'navbar.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/workfl
owSaveCreateProfile.xsd'.
Retrieving schema at 'searchform.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/wo
rkflowSaveCreateProfile.xsd'.
Retrieving schema at 'component_basic.xsd', relative to 'file:/E:/DIPPWF/XMLSche
ma/workflowSaveCreateProfile.xsd'.
Retrieving schema at 'displaytype.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/c
omponent_basic.xsd'.
Retrieving schema at 'error.xsd', relative to 'file:/E:/DIPPWF/XMLSchema/compone
nt_basic.xsd'.
Retrieving schema at 'component_workflowTicket.xsd', relative to 'file:/E:/DIPPW
F/XMLSchema/workflowSaveCreateProfile.xsd'.
*[ERROR] More than one part for message OblixIDXMLInput*
org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessingException:
More than one part for message OblixIDXMLInput
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:1162)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:1085)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
ng(WSDL11ToAxisServiceBuilder.java:686)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
int(WSDL11ToAxisServiceBuilder.java:538)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
ints(WSDL11ToAxisServiceBuilder.java:489)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:363)
at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:107)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException
: Error parsing WSDL
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:153)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
Caused by: org.apache.axis2.AxisFault: More than one part for message OblixIDXML
Input
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:397)
at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateA
llServices(WSDL11ToAllAxisServicesBuilder.java:107)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerat
ionEngine.java:147)
... 2 more
Caused by: org.apache.axis2.description.WSDL11ToAxisServiceBuilder$WSDLProcessin
gException: More than one part for message OblixIDXMLInput
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:1162)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.addQNameRefer
ence(WSDL11ToAxisServiceBuilder.java:1085)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateBindi
ng(WSDL11ToAxisServiceBuilder.java:686)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
int(WSDL11ToAxisServiceBuilder.java:538)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateEndpo
ints(WSDL11ToAxisServiceBuilder.java:489)
at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateServi
ce(WSDL11ToAxisServiceBuilder.java:363).
Thanks in advance.
akshayHello,
Were you able to resolve this issue ?
I am seeing the same issue and at my wits end.
regards
Amit -
Error to generate webservice from java file with JAXWS
I need to build a webservice to run on Glassfish, but I have problems, I did downloaded the latest JAX-WS recently(2 days).
I have the follow class to generate a wsdl file:
package com.dudhoo.farmacopedia.web;
import com.dudhoo.farmacopedia.web.hibernate.FarmacopediaKey;
import com.dudhoo.farmacopedia.web.key.KeyGenerator;
import java.util.Calendar;
import java.util.Date;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(serviceName="FarmacoWebService", name="nomeservice")
public class FarmacoWebService {
public FarmacoWebService() {
@WebMethod()
public Date getServerTime(){
return Calendar.getInstance().getTime();
public FarmacopediaKey generateSerial(Date ini, int dias){
return new KeyGenerator().generateKey(ini, dias);
}I have the follow ant code:
<?xml version="1.0" encoding="windows-1252" ?>
<!--Ant buildfile generated by Oracle JDeveloper 10g-->
<!--Generated 01/08/2006 22:56:00-->
<project name="FarmacoWeb" default="all" basedir=".">
<property file="build.properties"/>
<path id="classpath">
<fileset dir="../libs/" includes="**/*.jar"/>
</path>
<path id="jaxws.classpath">
<fileset dir="../libs/jaxws" includes="**/*.jar"/>
</path>
<target name="init">
<tstamp/>
<mkdir dir="${output.dir}"/>
<mkdir dir="${output.dir}/new"/>
<mkdir dir="${output.dir}/res"/>
</target>
<target name="all" description="Build the project" depends="compile,copy"/>
<target name="clean" description="Clean the project">
<delete includeemptydirs="true" quiet="true">
<fileset dir="${output.dir}" includes="**/*"/>
</delete>
</target>
<target name="compile" description="Compile Java source files" depends="init">
<javac destdir="${output.dir}" classpathref="classpath"
debug="${javac.debug}" nowarn="${javac.nowarn}"
deprecation="${javac.deprecation}" encoding="Cp1252" source="1.5"
target="1.5">
<src path="src"/>
</javac>
</target>
<target name="copy" description="Copy files to output directory"
depends="init">
<patternset id="copy.patterns">
<include name="**/*.gif"/>
<include name="**/*.GIF"/>
<include name="**/*.jpg"/>
<include name="**/*.JPG"/>
<include name="**/*.jpeg"/>
<include name="**/*.JPEG"/>
<include name="**/*.png"/>
<include name="**/*.PNG"/>
<include name="**/*.properties"/>
<include name="**/*.xml"/>
<include name="**/*-apf.xml"/>
<include name="**/*.ejx"/>
<include name="**/*.xcfg"/>
<include name="**/*.cpx"/>
<include name="**/*.dcx"/>
<include name="**/*.wsdl"/>
<include name="**/*.ini"/>
<include name="**/*.tld"/>
<include name="**/*.tag"/>
</patternset>
<copy todir="${output.dir}">
<fileset dir="src">
<patternset refid="copy.patterns"/>
</fileset>
</copy>
</target>
<target name="-pre-dist" >
<taskdef name="wsgen" classname="com.sun.tools.ws.ant.WsGen">
<classpath refid="classpath"/>
</taskdef>
<wsgen
debug="true"
keep="true"
destdir="${output.dir}/new"
resourcedestdir="${output.dir}/res"
sei="com.dudhoo.farmacopedia.web.FarmacoWebService">
<classpath>
<pathelement path="${jaxws.classpath}"/>
<pathelement location="${output.dir}"/>
</classpath>
</wsgen>
</target>
</project>When I run ant the the follow error is throwed:
Buildfile: /home/duduzera/jdevhome/mywork/Farmaco/FarmacoWeb/build.xml
-pre-dist:
[wsgen] Problem encountered during annotation processing;
[wsgen] see stacktrace below for more information.
[wsgen] java.lang.NoSuchMethodError: javax.jws.WebMethod.exclude()Z
[wsgen] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.hasWebMethods(WebServiceVisitor.java:373)
[wsgen] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.shouldProcessWebService(WebServiceVisitor.java:349)
[wsgen] at com.sun.tools.ws.processor.modeler.annotation.WebServiceVisitor.visitClassDeclaration(WebServiceVisitor.java:143)
[wsgen] at com.sun.tools.apt.mirror.declaration.ClassDeclarationImpl.accept(ClassDeclarationImpl.java:95)
[wsgen] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.buildModel(WebServiceAP.java:345)
[wsgen] at com.sun.tools.ws.processor.modeler.annotation.WebServiceAP.process(WebServiceAP.java:230)
[wsgen] at com.sun.mirror.apt.AnnotationProcessors$CompositeAnnotationProcessor.process(AnnotationProcessors.java:60)
[wsgen] at com.sun.tools.apt.comp.Apt.main(Apt.java:454)
[wsgen] at com.sun.tools.apt.main.JavaCompiler.compile(JavaCompiler.java:448)
[wsgen] at com.sun.tools.apt.main.Main.compile(Main.java:1075)
[wsgen] at com.sun.tools.apt.main.Main.compile(Main.java:938)
[wsgen] at com.sun.tools.apt.Main.processing(Main.java:95)
[wsgen] at com.sun.tools.apt.Main.process(Main.java:85)
[wsgen] at com.sun.tools.apt.Main.process(Main.java:67)
[wsgen] at com.sun.tools.ws.wscompile.CompileTool.buildModel(CompileTool.java:603)
[wsgen] at com.sun.tools.ws.wscompile.CompileTool.run(CompileTool.java:536)
[wsgen] at com.sun.tools.ws.util.ToolBase.run(ToolBase.java:54)
[wsgen] at com.sun.tools.ws.ant.WsGen.execute(WsGen.java:457)
[wsgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[wsgen] at org.apache.tools.ant.Task.perform(Task.java:364)
[wsgen] at org.apache.tools.ant.Target.execute(Target.java:341)
[wsgen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[wsgen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[wsgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[wsgen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[wsgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[wsgen] at oracle.jdevimpl.ant.runner.AntLauncher.launch(AntLauncher.java:321)
[wsgen] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[wsgen] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[wsgen] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[wsgen] at java.lang.reflect.Method.invoke(Method.java:585)
[wsgen] at oracle.jdevimpl.ant.runner.InProcessAntStarter.runAnt(InProcessAntStarter.java:293)
[wsgen] at oracle.jdevimpl.ant.runner.InProcessAntStarter.mav$runAnt(InProcessAntStarter.java)
[wsgen] at oracle.jdevimpl.ant.runner.InProcessAntStarter$1.run(InProcessAntStarter.java:71)
[wsgen] error: compilation failed, errors should have been reported
[wsgen]
BUILD SUCCESSFUL
Total time: 3 secondsI'm using JDeveloper 10g. Did someone had problems like this?
I think the problem maybe is caused by jar lib concurrences...
thanksYou get that error when response headers have already been sent to the client (browser). This can happen in two ways that I know of:
- you flushed data to the client, or somewhere the data was automatically flushed
- you already did a redirect/forward and are attempting to do a second one.
So if you want to prevent yourself from getting the error, you'll need to make sure that neither of the situations has occurred. Don't output content unless you are absolutely certain that you won't need to foward/redirect later and don't do a redirect/forward twice in the same resource. -
Unable to generate WebService Client with Exported (BAPI) WSDL file from XI
Hi there,
I, trying to setup a simple Web Service environment where I'll be exposing a BAPI as Web Service via XI.
So these are the steps I followed:
<b>1)</b> first I imported the BAPI meta data into my SWC in the repository. <b>2)</b> Second I defined my interrface etc.. <b>3)</b> Third I exported the generated BAPI WSDL file. <b>4)</b> Fourth, I tried to generate a Java proxy/client for my Web Service using a Java IDE (IBM WebSphere Application Developer and XML Spy).
Now the problem is that Im not able to generate the Web Service client using the exported WSDL file, the WSDL seems not to be valid...From the generated errors in the IDE, I can see that the problem has to do somewhere/somehow with the WSDL Binding element, which input parameters do not match the input parameters of the port type.
This is a small part of the WSDL file as generated by XI:
<wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Input">
<wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
</wsdl:message>
<wsdl:message name="BAPI_AR_ACC_GETOPENITEMS.Output">
<wsdl:part name="parameters" element="s0:BAPI_AR_ACC_GETOPENITEMS.Response" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"/>
</wsdl:message>
<wsdl:portType name="BAPI_AR_ACC_GETOPENITEMS.PortType">
<wsdl:operation name="BAPI_AR_ACC_GETOPENITEMS">
<wsdl:input message="s0:BAPI_AR_ACC_GETOPENITEMS.Input"/>
<wsdl:output message="s0:BAPI_AR_ACC_GETOPENITEMS.Output"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="BAPI_AR_ACC_GETOPENITEMS.SAPBinding" type="s0:BAPI_AR_ACC_GETOPENITEMS.PortType" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<s0:binding style="rfc"/>
Has anyone faced a situation like this before? Any clues where to look? I appreciate any feedback, thanks!
Rob.
Message was edited by: rob vianaHi Rob!
I'm facing the same problem - how did you solve your issue then? I'm getting following error during generation on .NET side:
============================================================================================
Error: There was an error processing 'http://server/wsdl/MIAMI_ACCDOCPost.wsdl'.
- The document at the url http://server/wsdl/MIAMI_ACCDOCPost.wsdl
was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'DISCO Document' is 'Discovery document at the URL http://server/wsdl/MIAMI_ACCDOCPost.wsdl could not be found.'.
- The document format is not recognized (the content type is 'content/unknown').
- Report from 'WSDL Document' is 'There is an error in XML document (2, 70138).'.
- Value cannot be null.
Parameter name: name
- Report from 'XML Schema' is 'The root element of a W3C XML Schema should be <schema> and its namespace should be 'http://www.w3.org/2001/XMLSchema'.'.
============================================================================================
kr Martin -
Hi...
I am getting an Error when i try to generate a Web-Service Proxy on JDeveloper for one of the Oracle WorkFlow Services viz., the[b] "TaskService"
ie.,
http://host:port/integration/services/TaskService/TaskServicePort?wsdl
The wizard exits with a fatal warning ( WS-30033 -- which i believe indicates Validation of the WSDL failed..!?!) saying
"uniqueness constraint violation : exception (taskProxy.proxy.faultType already exists)
Could Anyone please Help me w.r.t this..?!?
My requirement is to provide a UI for accessing Human WorkFlow Services...other than JSP...So, i am planning to create a Web-Service PROXY for the important Workflow Services like TaskQueryService, TaskService, etc...& then use the "jars" of these clients to invoke the Web-Services...!
Is there ANY Simpler method of doing this..?!?
I've seen the Code of the UserSampleUI application, but i can't get a similar code working in my Eclipse...don't know Which JARS are required...?!
[i tried bpm-services.jar, & others...but it gives me a run-time exception of type PC Exception...!! :(]
If so, please Do let me know ASAP...!!
[By the way, ALL this is w.r.t. the [b]10.1.3.1.0 version of[b] Oracle SOA Suite...]
Awaiting some response....
Thanks a lot in advance..!Hi Calvin,
You may want to try the 'no data binding' option on the proxy generation. This may enable you to go ahead, with a proxy that is not trying to generate Java code.
Yo can also try to make a local copy of your WSDL and remove the duplicate type declaration. Using the analyze command from WSA CLI is a quick way to do this itterative testing, as it will not generate the code. Once you have the analyze command going thourg the WSDL, you can go back to using genProxy.
You can find the documnetation here:
http://download.oracle.com/docs/cd/B32110_01/web.1013/b28974/wsassemble.htm#CHDBBDBF
Hope it helps,
-Eric -
Hello.
I get the error when I like to publish a method which return a Collection..
for example I have a Class:
package in2;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
import java.util.*;
import javax.jws.WebMethod;
import javax.jws.WebService;
public class servis {
public servis() {
public String hello() {
return "PETER";
public Collection vrniPodatke() {
Collection l = new ArrayList();
l.add ( new OptionList("PTER","VALENCIC"));
return l;
public int sestej (int a , int b) {
return a+b;
==========
package in2;
public class OptionList {
String a;
String b;
public OptionList(String a, String b) {
this.a = a;
this.b = b;
public void setA(String newa) {
this.a = newa;
public String getA() {
return a;
public void setB(String newb) {
this.b = newb;
public String getB() {
return b;
}The error I get is:
java.lang.RuntimeException: Cannot find namespace for: ns1
at oracle.j2ee.ws.wsdl.extensions.oracle.schema.BaseSchemaElement.getQNameFromValue(BaseSchemaElement.java:185)
at oracle.j2ee.ws.wsdl.extensions.oracle.schema.BaseSchemaElement.getAttributeValueAsQNameOrNull(BaseSchemaElement.java:173)
at oracle.j2ee.ws.wsdl.extensions.oracle.schema.ElementSchemaElement.getTypeAsQName(ElementSchemaElement.java:63)
at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaValidator.validate(SchemaValidator.java:145)
at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaValidator.validateSequence(SchemaValidator.java:414)
at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaValidator.validateComplexType(SchemaValidator.java:224)
at oracle.j2ee.ws.common.processor.modeler.wsdl.SchemaValidator.validate(SchemaValidator.java:157)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validateElement(WSDLValidator.java:709)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validateParts(WSDLValidator.java:667)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validateMessage(WSDLValidator.java:644)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validateOutput(WSDLValidator.java:604)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validateOperations(WSDLValidator.java:596)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validatePortType(WSDLValidator.java:585)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validateDefinition(WSDLValidator.java:97)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLValidator.validate(WSDLValidator.java:68)
at oracle.j2ee.ws.common.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:247)
at oracle.j2ee.ws.common.processor.config.ModelInfo.buildModel(ModelInfo.java:171)
at oracle.j2ee.ws.common.processor.Processor.runModeler(Processor.java:73)
at oracle.j2ee.ws.tools.wsa.AssemblerTool.run(AssemblerTool.java:126)
at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createModel(WsdlToJavaTool.java:471)
at oracle.j2ee.ws.tools.wsa.Util.createDeploymentDescriptors(Util.java:913)
at oracle.jdeveloper.webservices.model.generator.GenerateDescriptors.action(GenerateDescriptors.java:146)
at oracle.jdeveloper.webservices.model.java.generator.JavaEjbGenerateDescriptors.action(JavaEjbGenerateDescriptors.java:78)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:151)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:525)
at java.awt.Dialog$2.run(Dialog.java:553)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:551)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:358)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:222)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:194)
at oracle.jdeveloper.webservices.model.Model.saveEditSync(Model.java:226)
at oracle.jdevimpl.webservices.wizard.jaxrpc.WebServicesEditor.showDialog(WebServicesEditor.java:296)
at oracle.jdevimpl.webservices.WebServicesAddin.findAndInvokeWizard(WebServicesAddin.java:1408)
at oracle.jdevimpl.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:837)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:506)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:779)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:479)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
======================
What I'am doing wrong?I don't know what is happening with Jdeveloper ?!?!
I have tryed the same example at home with Jdeveloper 11.1.1.0.0 Build JDEVADF_MAIN.DROP5_GENERIC_071218.2321.4796
All works fine.....
What you think could be wrong (in my first post)? Why I have received the error? and why the same project works on other computer?
can someone reply to my post? -
Error while generating WebService Proxy..!!
Hi...
I am getting an Error when i try to generate a Web-Service Proxy on JDeveloper for one of the Oracle WorkFlow Services viz., the[b] "TaskService"
ie.,
http://host:port/integration/services/TaskService/TaskServicePort?wsdl
The wizard exits with a fatal warning ( WS-30033 -- Validation of WSDl failed?!) saying
"uniqueness constraint violation : exception (taskProxy.proxy.faultType already exists)
Could Anyone please Help me w.r.t this..?!?
[By the way, ALL this is w.r.t. the [b]10.1.3.1.0 version of[b] Oracle SOA Suite...]
Awaiting some response....The same problem was encountered by be.
The WSDL is correct and WS-I compliant. The limitation lies with the code generator. I was not really thrilled to see the error.
Used this to find out where the wsdl was failing:-
java -jar wsa.jar -analyze -debug -wsdl "D:\WFTask\TaskService.wsdl"
The problem was
<element name="staleObjectFault" type="tns:faultMessageType"/>
<element name="operationErroredFault" type="tns:faultMessageType"/>
in TaskService.xsd.
For the workaround I copied (faultMessageType) and created a new complexType
<complexType name="faultMessageType2">
<sequence>
<element name="faultInfo" type="xsd:string"/>
<element ref="task:task"/>
</sequence>
</complexType>
and changed the element defination to
<element name="staleObjectFault" type="tns:faultMessageType2"/>
Problem resolved. Generation successful. Yet to test at runtime.
Hope this helps.
Sashwat
http://tech-sash.blogspot.com -
WLS 8.1.4 - Generating WebService client with HTTP 1.1 protocol
I tried to generated a web service client (Weblogic Workshop 8.1.4) from a WSDL.
When I run this client I found that it uses HTTP 1.0 protocol (from access log)
Is there a way (flag,...) to force the client to use HTTP 1.1 protocol ?
Thanks
Andreamartin ng wrote:
any reply so far?....seems to me weblogic need to improve their support. Whenever i make a query eveything goes to Forum.Hi. I hope it's documented somewhere that these forums are not
official BEA/WebLogic support. For quick official support, open
a case with them at:
http://www.bea.com/framework.jsp?CNT=index.htm&FP=/content/support/contacts/
Joe -
Generating webservices client without warning messages.
Hi,
I am using RAD7.0 and WAS6.1 [Java 5]. While generating web services from .wsdl file auto generated files contains statements without type safety parameters [Java 5 Generics].
For ex following fragment is from the auto generated file:
java.util.Map inner0 = new java.util.HashMap();
inner0.put("create",list0);
While compiling the files following warning is displayed
Type Safety: the method put(Object,Object) belongs to the raw type Map. References to generic Map<K,V> should be parameterized.
Any way it doesn't hinder the development. But I would like to know how to generate the web services client as per standards of Java 5.Apparently, a hosed CS5 installation. Its manager is crashing causing a windowserver crash. Uninstall it, using the uninstaller that came with it (that's a WAG), download and install the 10.6.4 COMBO update, repair permissions, and restart. If everything else works without crashing, then reinstall CS5. BTW, update your My Settings file, since your current one's showing 10.5.2, which has nothing to do with SL.
-
Error creating Webservice Client in JAVA for ABAP Webservice(WSDL file)
Hi all,
I have created a webservice from a funtion module in the backend.
Using soamanger I downloaded the wsdl file using "Open WSDL document for selected binding" link.
I tested this web service in backend and it is working fine.
Now I am trying to generate JAVA cilent for this webservice using Eclipse and Axis,but getting the following error
IWAB0399E Error in generating Java from WSDL: WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy):
faultCode=INVALID_WSDL: Encountered unexpected element '{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:
WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element
'{http://schemas.xmlsoap.org/ws/2004/09/policy}Policy'.:
at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
at java.lang.Thread.run(Unknown Source)
Please let me know,wat needs to be done for this error to get resolved
Thanks
SanthoshHi,
I am also getting the same error while generating the client class from IBM Rational Application Developer IDE.
Here is the error I get.
WSDLException (at /wsdl:definitions/wsdl:portType/wsp:Policy): faultCode=INVALID_WSDL: Encountered unexpected element 'Policy'.:
[java] at com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown Source)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.parsePortType(Unknown Source)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
[java] at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:516)
[java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495)
[java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
[java] at java.lang.Thread.run(Thread.java:571)
Did you find out the cause of this issue?
Thanks & Regards,
Vijay -
Weblogic 8.1 :: Getting error while generating Client java class from WSDL
Hi,
For SOAP webservice, I am using ant script to generate java client from WSDL but getting below error. Please inform if any suggestion to resolve this.
Also let me know if any other alternative to generate client java code.
Ant script:
===========
<project name="project" default="generateClientJar">
<property file="build.property">
</property>
<taskdef name="clientgen" classname="weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask">
<classpath>
<fileset dir="${build_lib.dir}" includes="*.jar" />
</classpath>
</taskdef>
<path id="compile_path">
<pathelement location="C:/jar/wls-api.jar" />
<pathelement location="${build_lib.dir}/weblogic.jar" />
<pathelement location="C:/jar/webserviceclient+ssl.jar" />
<pathelement location="D:/Java_Src_10.1.0/nextgen_arch/wlpatch/webservices.jar" />
</path>
<target name="generateClientJar" depends="generate.client">
<clientgen wsdl="${wsdl.file}" classpathref="compile_path"
serviceName="${service.name}"
packageName= "${client.pkg}"
clientJar="${ws.client.name}" />
</target>
<target name="generate.client" description="Generate web-services client">
<property name="wsdl.file" value="${sms.wsdl.file}"/>
<property name="client.pkg" value="${sms.client.pkg}"/>
<property name="ws.client.name" value="${ws.sms.name}"/>
<property name="service.name" value="${sms.service.name}"/>
</target>
</project>
build.property file
===========
base=C:/SMS
lib=E:/jar_path
sms.wsdl.file=${base}/SMS.wsdl
sms.client.pkg=com.db.dbdi.gtbportal.sms.client
ws.sms.name=${lib}/ws_SmsService_client.jar
sms.service.name=SMSService
build_lib.dir = E:/jar_path
Error log:
================
Buildfile: D:\Java_Src_10.1.0\ant\build_weblogic8.xml
generate.client:
generateClientJar:
[clientgen] Generating client jar for C:/SMS/SMS.wsdl ...
[clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort.java:15: parameters is already defined in sendSMS(com.db.portal.webservices.sms.SendSMS,com.db.portal.webservices.sms.holders.SendSMSResponseHolder)
[clientgen] public void sendSMS(com.db.portal.webservices.sms.SendSMS parameters, com.db.portal.webservices.sms.holders.SendSMSResponseHolder parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort.java:21: parameters is already defined in getStatus(com.db.portal.webservices.sms.GetStatus,com.db.portal.webservices.sms.holders.GetStatusResponseHolder)
[clientgen] public void getStatus(com.db.portal.webservices.sms.GetStatus parameters, com.db.portal.webservices.sms.holders.GetStatusResponseHolder parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort_Stub.java:20: parameters is already defined in sendSMS(com.db.portal.webservices.sms.SendSMS,com.db.portal.webservices.sms.holders.SendSMSResponseHolder)
[clientgen] public void sendSMS(com.db.portal.webservices.sms.SendSMS parameters, com.db.portal.webservices.sms.holders.SendSMSResponseHolder parameters)
[clientgen] ^
[clientgen] C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSPort_Stub.java:39: parameters is already defined in getStatus(com.db.portal.webservices.sms.GetStatus,com.db.portal.webservices.sms.holders.GetStatusResponseHolder)
[clientgen] public void getStatus(com.db.portal.webservices.sms.GetStatus parameters, com.db.portal.webservices.sms.holders.GetStatusResponseHolder parameters)
[clientgen] ^
[clientgen] Note: C:\Documents and Settings\amitkumar.patel\Local Settings\Temp\ws_SmsService_client.jar699419996\com\db\dbdi\gtbportal\sms\client\SMSService.java uses or overrides a deprecated API.
[clientgen] Note: Recompile with -deprecation for details.
[clientgen] 4 errors
*[*clientgen] java.io.IOException: Compiler failed executable.exec**
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:470)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:328)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:336)
[clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compileFiles(CompilerHelper.java:80)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compileStubs(ClientGenImpl.java:627)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.generateStub(ClientGenImpl.java:572)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClientGenFromWsdl(ClientGenImpl.java:409)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(ClientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doClientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.execute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:364)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:341)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[clientgen] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[clientgen] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[clientgen] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
[clientgen] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
BUILD FAILED
D:\Java_Src_10.1.0\ant\build_weblogic8.xml:34: weblogic.webservice.tools.build.WSBuildException: Compiler failed executable.exec - with nested exception:
[java.io.IOException: Compiler failed executable.exec]
Total time: 1 minute 12 secondsHi,
Can u Please post the WSDL..here. I remember long back i resolved this kind of issue...when i was getting "*parameters is already defined in - - -*" while using ClientGen.
Once i will get the WSDL may be i can recall it...
If u have any problem in Posting the WSDL..in Forums .. then let me know I will send my E-Mail Address...
As far as i remember ..it usually happens when we Run ClientGen task of WLS81 ON the WebService/WSDL generated by WebLogic 9.x or Above. Please let me know if this is the Case with you as well... . I remember there is a Patch for it...for WLS8 ClientGen task...I dont remember the Patch Number Exactly.
Just For testing:
Just Use WLS9.x ClientGen task On the Same WSDL
<taskdef name="clientgen" classname="weblogic.wsee.tools.anttasks.ClientGenTask" />
I am sure you will not see this issue... because the issue is there only with WLS8 Clientgen...
Thanks
Jay SenSharma
http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)
Edited by: Jay SenSharma on Jan 8, 2010 4:32 PM
Edited by: Jay SenSharma on Jan 8, 2010 4:34 PM -
JWSDP 2.0 Webservices client Error
Hi,
I have generated a client stubs for RPC/Encoded style webservices using wscompile tool of JWSDP 2.0. But when i run the client, i get following error
no serializer is registered for (class [Lcom.test.mywebservices.service.TemplateVariable;, {http://com.test.mywebservices/types}ArrayOfTemplateVariable)
at com.sun.xml.rpc.encoding.TypeMappingUtil.getSerializer(TypeMappingUtil.java:51)
at com.sun.xml.rpc.encoding.InternalTypeMappingRegistryImpl.getSerializer(InternalTypeMappingRegistryImpl.java:376)
at com.test.mywebservices.service.TemplateVariables_SOAPSerializer.initialize(TemplateVariables_SOAPSerializer.java:28)
at com.sun.xml.rpc.encoding.ReferenceableSerializerImpl.initialize(ReferenceableSerializerImpl.java:65)
at com.sun.xml.rpc.encoding.InternalTypeMappingRegistryImpl.getSerializer(InternalTypeMappingRegistryImpl.java:381)
The client is embedded in my j2ee application and i am deploying it on jboss 4.2.2 with jdk 5.0.
Please help.
ThanksHi,
I reselved the problem by just copying the FastInfoset to the jaxrpc\lib directory (I am sure this should work in a different way).
Well, the next problem I am getting is that the "XMLStreamWriter" class cannot be found. This class is contained in jsr173_api.jar.
I guess my main question is the following:
Which projects are necessary to get this simple helloWorld example to work?
I did set the JWSDP_HOME varible. Is there another setting I have to make to have all necessary jar-files available and to be able to run the samples?
Could anybody point me to a tutorial that does not only show a few lines of code (as the HelloWorld sample in the JWSDP-Tutorial) but that would instead lead me through a step-by-step sample application that I write by myself and actually runs at the end? The example in the JWSDP-Tutorial uses all kinds of existing config files which are not explained.
Thanks for your help.
Maybe you are looking for
-
I was trying to purchase something in an app that I am using but received the error, is this issue stemming from apple or the app? Or my payment option. The app is puzzles and dragons
-
Code for changing a TextField BackGround color?
Hello again! I can´t find anywhere the code for changing the background color of a TextField, anyone knows? I tried: TextField.border.fill.color.value = "255,255,255"; // doesn´t change bg color TextField.caption.font.fill.color.value
-
How can I copy and use in my PC my contacts and memos ?
I lost my iPhone4 and could not see or use my contacts list and memos till I replaced my Iphone4 and now I can see and use them in my ipone4 and I want to have a reading backup in my PC, any one can help?
-
Facing pages when Digital Publishing
I used document setup to change a document's intent to Digital Publishing - the master still shows facing pages, which I think is not supposed to show when intent is set to digital publishing. Anybody seen this? Have a workaround.It's not a show-stop
-
Dropped database, attempt to recreate it fails
Previously I inadvertently created a TEST database with objects in the SYSTEM tablespace so I removed all trace of that database by deleting all the files associated with it (control, rollback, temp, user, redo, data). Now I'm trying to recreate the