Webservice Stubs generation problems
I need to consume a axis webservice. I got the wsdl from the url and i tried to generate stubs in Jdev 10.1.2 but it is giving some wsdl validation errors like schema element not found. In that wsdl they imported some schema(.xsd) files.I dont know how to validate a wsdl file in jdev against schema files. If any one can help me,it would be really great. I was trying since 2 days but no luck.Please help me.
Thanks
Maybe you should try JDeveloper 10.1.3 that has a much better WS support.
Similar Messages
-
Hello,
As many people which try to use the AS3 stub generation from
WSDL, I have problems because the generated code is not working
with *complexe* (aka non trivial) WSDLs.
There are a lot of bugs in jira arround
this
theme.
Is there any plan to have it corrected? I haven't find much
answer in jira neither in forums, am I missing a support source (a
dedicated forum, ...)?
Is anyone able to help me? The answer could be don't try to
use WS generation stuff.
Regards,
MimilSelect the Proxy node in the Application Navigator and View the Structure Pane, which will display all the related files for the proxy node..
Regards,
Sunil.. -
Https enable webservice stub generation .
Hi,
I have tried many times but did not have any luck .anyone of you ever successful in generating stub from sun tool kit utility for Web service over HTTPS .
I need SSL enable it's project requirement ,but could not able to generate Stub ,getting exception while generating stub and then stub generation utility crashes.
I need help please reply me .Hi,
I have tried many times but did not have any luck .anyone of you ever successful in generating stub from sun tool kit utility for Web service over HTTPS .
I need SSL enable it's project requirement ,but could not able to generate Stub ,getting exception while generating stub and then stub generation utility crashes.
I need help please reply me . -
Stub generation problem with the wsdl file
Hi all
I'm trying to write a simle webservice client based on JAX. My webservice is working fine I've tested it with a standalone app. In my webservice I'm using complex type. Problem is that i can't generate properly stubs. This is a msg I'm getting during the generation
warning: ignoring operation "getEmployee": message part does not refer to a schema element declaration
warning: Port "EmployeeIFPort" does not contain any usable operationsBecause of that my method to get the Object from the webservice is not generated.
This is the wsdl file.
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="EmployeeService" targetNamespace="urn:Foo" xmlns:tns="urn:Foo" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<schema targetNamespace="urn:Foo" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:Foo" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Employee">
<sequence>
<element name="name" type="xsd:string"/>
<element name="surname" type="xsd:string"/>
<element name="age" type="xsd:int"/>
</sequence>
</complexType>
</schema>
</types>
<message name="EmployeeIF_getEmployee">
<part name="String_1" type="xsd:string"/>
<part name="String_2" type="xsd:string"/>
<part name="int_3" type="xsd:int"/>
</message>
<message name="EmployeeIF_getEmployeeResponse">
<part name="result" type="tns:Employee"/>
</message>
<portType name="EmployeeIF">
<operation name="getEmployee" parameterOrder="String_1 String_2 int_3">
<input message="tns:EmployeeIF_getEmployee"/>
<output message="tns:EmployeeIF_getEmployeeResponse"/>
</operation>
</portType>
<binding name="EmployeeIFBinding" type="tns:EmployeeIF">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="getEmployee">
<soap:operation soapAction=""/>
<input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
</input>
<output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" use="literal"/>
</output>
</operation>
</binding>
<service name="EmployeeService">
<port name="EmployeeIFPort" binding="tns:EmployeeIFBinding">
<soap:address location="http://localhost:8080/EmployeeService/getEmployee"/>
</port>
</service>
</definitions>However the complex type class Employee is generated properly as well as other stub classes like the interface EmployeeIF, EmployeeIF_getEmployee_RequestStruct and EmployeeIF_getEmployee_ResponseStruct (I mean i think they are generated properly). As I said befor the problem is that the webservice method from the EmployeeIF.getEmployee() is not generated in the EmployeeIF_Stub. Any ideas why? I'm using WTK 2.5
thx in advance :)Here i Followed Url &sap-user=XXX&sap-password=YYY to the WSDL-URL with XXX and YYY being your username and password and you will be authenticated.
Later i Struck. Actual my requirement is I have two views i want to take a value from the first view and then return value displayed in the second view. All input/output parameters are the taken from the WSDL file. Can you please Help me. -
J2ME, WTK, Webservices, Stub-generation & byte[ ]
Does anybody know if WTK2.2 (with current patches) support webservices metods that return a byte-array (byte [ ])? I have a webservice developed in JBuilder with a method that return a byte-array. When generatig stub-classes for this webservice WTK display this message: error: Found unknown simple type: byte[ ]
?Thunder!
I'm struggling with the same problem with the byte[] in my wsdl. Did you have any luck solving this? -
Java.lang.ClassCastException when calling webservice stub from oracle DB
Hello everyone,
Because i need to get familliar with calling java webservices from an oracle database, i followed the following example
(http://www.oracle.com/technology/products/jdev/howtos/10g/WS_DBCallout/DBCalloutWS_HowTo.htm),
which included installing the SOAP client stack to the database (in the sys schema), grant the right permissions to the SYS user, developing a simple Helloworld webservice with jdeveloper 10.1.2, generating a Webservice stub and deploying a static method of this stub to the database.
All of this worked just fine, but when i want to call the webservice from oracle by invoking the deployed function, i get a java.lang.ClassCastException.
The complete stacktrace lists as follows:
v_Return = foutje: java.lang.ClassCastExceptionnulljava.lang.ClassCastException
at org.apache.soap.rpc.RPCMessage.serializeParams(RPCMessage.java:323)
at org.apache.soap.rpc.RPCMessage.marshall(RPCMessage.java:305)
at org.apache.soap.Body.marshall(Body.java:148)
at org.apache.soap.Envelope.marshall(Envelope.java:203)
at org.apache.soap.Envelope.marshall(Envelope.java:161)
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHTTPConnection.java:664)
at org.apache.soap.rpc.Call.invoke(Call.java:261)
at test.HelloWorldServiceStub.sayHello(HelloWorldServiceStub.java:82)
I debugged the WebServiceStub and noticed that the call.invoke method crashes. This is weird beacuse when i use System.out.println on the parameter is works just fine. so you would think it is a string.
Moreover, if i invoke the webservice from the endpoint or even when im debugging the stub locally it all works just fine.
Can someone plzzzzzz help me with this because i spend the whole day looking for an answer and im getting crazy!!!!!
Thanx al lot guys,
Kim
PS or could the problem be in the database instead of the webservice?????????
Message was edited by:
user568880
Message was edited by:
Kim ZeevaardersI think that it's going wrong because i did not install the right SOAP client stack.
In the HowTo is specified what JAR files are to be loaded in the database (from %JDEV_HOME), but it states that it has only been tested on a Oracle 9.2 database. I'm using Oracle10g. Maybe that's the reason that im getting this classcast exception...
Can anybody tell me what the right .JAR files are that have to be loaded into database when working with Oracle 10g?
Many thx in advance!
Kim -
Issue while generating Webservice Stub
Hi,
When i tried to create a Webservice stub using Stub Generator available in Sun Java WTK 2.5 Beta, it created a Stub java file with operatons(methods) missing in it.
It displayed following warning while creating stub:
warning: ignoring operation "addBlogInfo": more than one part in input message
warning: ignoring operation "getLocation": more than one part in input message
warning: Port "MzoneBlogging" does not contain any usable operations
The WSDL file which I used as an input is as follows:
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="urn:Mzone" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:Mzone" xmlns:intf="urn:Mzone" xmlns:tns1="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.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:types>
<schema targetNamespace="urn:Mzone" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="in0" type="tns1:string"/>
<element name="in1" type="tns1:string"/>
<element name="in2" type="xsd:int"/>
<element name="in3" type="tns1:string"/>
<element name="addBlogInfoReturn" type="tns1:string"/>
<element name="in4" type="tns1:string"/>
<element name="in5" type="tns1:string"/>
<complexType name="Transaction">
<sequence>
<element name="transactionId" nillable="true" type="tns1:string"/>
</sequence>
</complexType>
<complexType name="ArrayOfTransaction">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:Transaction"/>
</sequence>
</complexType>
<complexType name="ZoneInfo">
<sequence>
<element name="categoryId" type="xsd:int"/>
<element name="categoryName" nillable="true" type="tns1:string"/>
<element name="transaction" nillable="true" type="impl:ArrayOfTransaction"/>
</sequence>
</complexType>
<element name="getLocationReturn">
<complexType>
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:ZoneInfo"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="getLocationResponse">
<wsdl:part element="impl:getLocationReturn" name="getLocationReturn"/>
</wsdl:message>
<wsdl:message name="getLocationRequest">
<wsdl:part element="impl:in4" name="in0"/>
<wsdl:part element="impl:in5" name="in1"/>
</wsdl:message>
<wsdl:message name="addBlogInfoResponse">
<wsdl:part element="impl:addBlogInfoReturn" name="addBlogInfoReturn"/>
</wsdl:message>
<wsdl:message name="addBlogInfoRequest">
<wsdl:part element="impl:in0" name="in0"/>
<wsdl:part element="impl:in1" name="in1"/>
<wsdl:part element="impl:in2" name="in2"/>
<wsdl:part element="impl:in3" name="in3"/>
</wsdl:message>
<wsdl:portType name="MzoneBlogging">
<wsdl:operation name="addBlogInfo" parameterOrder="in0 in1 in2 in3">
<wsdl:input message="impl:addBlogInfoRequest" name="addBlogInfoRequest"/>
<wsdl:output message="impl:addBlogInfoResponse" name="addBlogInfoResponse"/>
</wsdl:operation>
<wsdl:operation name="getLocation" parameterOrder="in0 in1">
<wsdl:input message="impl:getLocationRequest" name="getLocationRequest"/>
<wsdl:output message="impl:getLocationResponse" name="getLocationResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="MzoneBloggingSoapBinding" type="impl:MzoneBlogging">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="addBlogInfo">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addBlogInfoRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="addBlogInfoResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="getLocation">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getLocationRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getLocationResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MzoneBloggingService">
<wsdl:port binding="impl:MzoneBloggingSoapBinding" name="MzoneBlogging">
<wsdlsoap:address location="http://localhost:8080/axis/services/MzoneBlogging"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Please let me know how to solve this issue. Its very urgent. Any help greatly appreciated.
Thanks in advanceHi,
I have written this rule....
ZAP1 Privilage Entitlement 90 Days
VARSTLDYPP Last day of pay.per?
N
LEAVE Stop with PC Rule
Y
HRS=FR01C Set
HRS?90 Decision op. HRS
HRS-90 Subtraction
HRS*-1 Multiplication
HRS?1 Decision op. HRS
HRS=1 Set
ADDDB0094Z Set day balance = 0
UPDTQA01 Abs. Quota Accrual
<
ADDDB0094Z Set day balance = 0
UPDTQA01 Abs. Quota Accrual
<
HRS=LR01C Set
UPDTQA01 Abs. Quota Accrual
ADDDB0094Z Set day balance = 0
Please check and tell is it ok?
Regards,
Apoorwa -
hi,
I can't generate my stub classes from this wsdl file :
<?xml version="1.0" encoding="UTF-8"?>
<definitions
name="YYYY"
targetNamespace="http://www.XXXX.com/YYYY.wsdl"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://www.XXXX.com/YYYY.wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://www.XXXX.com/YYYY.xsd1">
<message name="authenticateRequest">
<part name="Login" type="xsd:string"/>
<part name="Password" type="xsd:string"/>
</message>
<message name="authenticateResponse">
<part name="Return" type="xsd:boolean"/>
<part name="UserID" type="xsd:string"/>
</message>
<portType name="YYYYPortType">
<operation name="authenticate">
<documentation>authentication method on YYYY information system</documentation>
<input message="tns:authenticateRequest"/>
<output message="tns:authenticateResponse"/>
</operation>
</portType>
<binding name="YYYYBinding" type="tns:YYYYPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="authenticate">
<soap:operation soapAction="capeconnect:YYYY:YYYYPortType#authenticate"/>
<input>
<soap:body namespace="urn:YYYYsoapserver" use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="YYYY">
<port binding="tns:YYYYBinding" name="YYYYPort">
<soap:address location="http://r-lnx-teacher/YYYY"/>
</port>
</service>
</definitions>And the message error is not really helping me "stub generation failed"
The toolkit example is working, though :
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://serverscript.org/wsdl" xmlns:ns2="http://serverscript.org/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="serverscript" targetNamespace="http://serverscript.org/wsdl">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://serverscript.org/types" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://serverscript.org/types">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="request">
<sequence>
<element name="String_1" type="string" nillable="true"/>
<element name="String_2" type="string" nillable="true"/></sequence></complexType>
<complexType name="requestResponse">
<sequence>
<element name="result" type="string" nillable="true"/></sequence></complexType>
<element name="request" type="tns:request"/>
<element name="requestResponse" type="tns:requestResponse"/></schema></types>
<message name="Interface_request">
<part name="parameters" element="ns2:request"/></message>
<message name="Interface_requestResponse">
<part name="result" element="ns2:requestResponse"/></message>
<portType name="Interface">
<operation name="request">
<input message="tns:Interface_request"/>
<output message="tns:Interface_requestResponse"/></operation></portType>
<binding name="InterfaceBinding" type="tns:Interface">
<operation name="request">
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output>
<soap:operation soapAction=""/></operation>
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/></binding>
<service name="Serverscript">
<port name="InterfacePort" binding="tns:InterfaceBinding">
<soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" location="http://sunwireless.quimbik.com:80/serverscript2/serverscript"/></port></service></definitions>but when I change the soap-binding-style attribute from document to rpc, it doesn't work anymore. And I found it weird that they use document, since according to wsdl spec (w3c) rpc is used for Request-Response operations... I also tried to write another version, with document instead of rpc, and it generated something alright, but my Interface was empty : no trace of the operation I described: not really useful.
Any suggestion?
ThanksJ2ME Web Services supports only document/literal format, so that's the reason the stub cannot be generated.
-
Clientgen in WL 81 giving problems for stub generation from WL91 WSDL
Hi,
I am very new to this forum and new to Weblogic too.
Here is my problem. I generated a webservice from a Stateless Session bean using annotation in WebLogic 91. Used the "jwsc"/"wldeploy" to generate and deploy the webservice. Also generated the client stubs using "clientgen" in weblogic 91.
Created a small web application using a single jsp and servlet (the servlet is where i invoke the service).
Everything works fine till its weblogic 91.
Now the problem. I need to make the jsp work from Weblogic 81. So I am trying to create the client stubs from the service endpoint WSDL on WebLogic 91 by using the deployed webservice URL.
The clientgen in WL 81 is complaining that the "parameters" is already defined (Please see the error below".
I would assume that BEA would have tested this scenario as it should be a no-brainer. So why does the cleintgen in WL 81 complain. Is there any other step or way that I am missing. I have tried all sorts of things before posting to this forum (like 1. generating the stubs using WSDL2JAVA using axis -- WebLogic 81 gives a null pointer exception 2. generating the client stubs using "clientgen" in WL 91 and trying to compile using the jdk 1.4 and using in WL 81 -- complains that the couldnot find something like jax-rpc._._.ServiceImpl
Will be realy helpful if someone who had this kind of experience of someone from BEA can help me a little bit.
Thanks in advance to all for your time.
ERROR WHILE using CLIENGEN
build-client:
[clientgen] Generating client jar for http://localhost:7001/webservice/MAC/Metho
dsAccessControl?WSDL ...
[clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfint_literal i
ncompliantly with JAX-RPC, mapping to a Java array of .int
[clientgen] WARNING: Map ['http://elexnet.bah.com/methods']:ArrayOfMethodUserTO_
literal incompliantly with JAX-RPC, mapping to a Java array of com.bah.elexnet.s
erver.to.MethodUserTO
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:15: par
ameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchiveUse
r,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
[clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:21: par
ameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUserRole
s,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
[clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:27: par
ameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com.bah.
elexnet.methods.holders.GetUsersResponseHolder)
[clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:33: par
ameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserRoles,
com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
[clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:39: par
ameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUser,co
m.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
[clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:45: par
ameters is already defined in changeSystemPassword(com.bah.elexnet.methods.Chang
eSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordResponseHold
er)
[clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
onseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:51: par
ameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUser,com.
bah.elexnet.methods.holders.DeleteUserResponseHolder)
[clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType.java:57: par
ameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUserRoles,
com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
[clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:20
: parameters is already defined in unArchiveUser(com.bah.elexnet.methods.UnArchi
veUser,com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder)
[clientgen] public void unArchiveUser(com.bah.elexnet.methods.UnArchiveUser pa
rameters, com.bah.elexnet.methods.holders.UnArchiveUserResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:39
: parameters is already defined in editUserRoles(com.bah.elexnet.methods.EditUse
rRoles,com.bah.elexnet.methods.holders.EditUserRolesResponseHolder)
[clientgen] public void editUserRoles(com.bah.elexnet.methods.EditUserRoles pa
rameters, com.bah.elexnet.methods.holders.EditUserRolesResponseHolder parameters
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:58
: parameters is already defined in getUsers(com.bah.elexnet.methods.GetUsers,com
.bah.elexnet.methods.holders.GetUsersResponseHolder)
[clientgen] public void getUsers(com.bah.elexnet.methods.GetUsers parameters,
com.bah.elexnet.methods.holders.GetUsersResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:77
: parameters is already defined in addUserRoles(com.bah.elexnet.methods.AddUserR
oles,com.bah.elexnet.methods.holders.AddUserRolesResponseHolder)
[clientgen] public void addUserRoles(com.bah.elexnet.methods.AddUserRoles para
meters, com.bah.elexnet.methods.holders.AddUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:96
: parameters is already defined in archiveUser(com.bah.elexnet.methods.ArchiveUs
er,com.bah.elexnet.methods.holders.ArchiveUserResponseHolder)
[clientgen] public void archiveUser(com.bah.elexnet.methods.ArchiveUser parame
ters, com.bah.elexnet.methods.holders.ArchiveUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:11
5: parameters is already defined in changeSystemPassword(com.bah.elexnet.methods
.ChangeSystemPassword,com.bah.elexnet.methods.holders.ChangeSystemPasswordRespon
seHolder)
[clientgen] public void changeSystemPassword(com.bah.elexnet.methods.ChangeSys
temPassword parameters, com.bah.elexnet.methods.holders.ChangeSystemPasswordResp
onseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:13
4: parameters is already defined in deleteUser(com.bah.elexnet.methods.DeleteUse
r,com.bah.elexnet.methods.holders.DeleteUserResponseHolder)
[clientgen] public void deleteUser(com.bah.elexnet.methods.DeleteUser paramete
rs, com.bah.elexnet.methods.holders.DeleteUserResponseHolder parameters)
[clientgen]
^
[clientgen] C:\Documents and Settings\525328.ROCKIT\Local Settings\Temp\test.jar
198043065\com\bah\elexnet\methods\client\accesscontrol\MACSPortType_Stub.java:15
3: parameters is already defined in getUserRoles(com.bah.elexnet.methods.GetUser
Roles,com.bah.elexnet.methods.holders.GetUserRolesResponseHolder)
[clientgen] public void getUserRoles(com.bah.elexnet.methods.GetUserRoles para
meters, com.bah.elexnet.methods.holders.GetUserRolesResponseHolder parameters)
[clientgen]
^
[clientgen] 16 errors
[clientgen] java.io.IOException: Compiler failed executable.exec
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:470)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:328)
[clientgen] at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:336)
[clientgen] at weblogic.webservice.tools.build.internal.CompilerHelper.compi
leFiles(CompilerHelper.java:80)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.compil
eStubs(ClientGenImpl.java:627)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.genera
teStub(ClientGenImpl.java:572)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.doClie
ntGenFromWsdl(ClientGenImpl.java:409)
[clientgen] at weblogic.webservice.tools.build.internal.ClientGenImpl.run(Cl
ientGenImpl.java:340)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.doC
lientGen(ClientGenTask.java:351)
[clientgen] at weblogic.ant.taskdefs.webservices.clientgen.ClientGenTask.exe
cute(ClientGenTask.java:208)
[clientgen] at org.apache.tools.ant.Task.perform(Task.java:341)
[clientgen] at org.apache.tools.ant.Target.execute(Target.java:309)
[clientgen] at org.apache.tools.ant.Target.performTasks(Target.java:336)
[clientgen] at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
[clientgen] at org.apache.tools.ant.Project.executeTargets(Project.java:1255
[clientgen] at org.apache.tools.ant.Main.runBuild(Main.java:609)
[clientgen] at org.apache.tools.ant.Main.start(Main.java:196)
[clientgen] at org.apache.tools.ant.Main.main(Main.java:235)
BUILD FAILED
file:C:/Projects/OtherProjects/WL/soaws/build/build.xml:122: weblogic.webservice
.tools.build.WSBuildException: Compiler failed executable.exec - with nested exc
eption:
[java.io.IOException: Compiler failed executable.exec]did you get a solution for this issue. I am trying to generate a stub to connect to a webservice i created by exposing my stateless session EJB as a web service, using annotations. I want to create a client stub using the clientgen from weblogic 81. I am unable to do this, do you have any solution to this.
-
Stub Generation - WSDL contains extensions
Hey,
I try to generate stubs with the wireless toolkit.
The problem is that the WSDL contains extension tags like this:
<xsd:complexType name="BusinessTransactionDocumentID">
<xsd:simpleContent>
<xsd:extension base="BusinessTransactionDocumentID.Content">
<xsd:attribute name="schemeID">
<xsd:simpleType>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="60"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="schemeAgencyID">
<xsd:simpleType>
<xsd:restriction base="xsd:token">
<xsd:maxLength value="60"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="schemeAgencySchemeAgencyID" type="AgencyIdentificationCode"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>I tried to replace the extension somehow but I couldn't find a way, that the request looks the same way as it does when I use my usual proxies.
Is there a way that the stub generator can handle the extensions? How can I replace them, so it would work?
Thanks in advance
Regards
TinaHi John,
Have you considered using a WSDL generation GUI, such as
http://www.omniopera.com/omniopera.html
Bruce
BTW, you do realize that when a webservice is deployed on WLS v7, the
WSDL is available to anyone using
http://<host>:<port>/<context_url>/<webservice>?WSDL
john wrote:
Bruce, I'm not sure how I would use those other tasks to obtain
what I want. AFAIK, the only way to generate a WSDL for a service
is to use the 'clientgen' task. And the clientgen task requires
the actual webservice implementation in the form of a .ear
file.
In my case, I need to create WSDLs which I then pass on to
my customers, for them to implement and host. Currently, to do
this I have to myself implement the desired dummy webservice
and then use clientgen to obtain the WSDL (along with the
stubs etc ..)
thanx
-john
Bruce Stephens <[email protected]> wrote:
Hi John,
In addition to the servicegen and clientgen ant tasks there are now
several other narrowly focused ant tasks such as autotype, and
source2wsdd. Check out the documentation:
http://edocs.bea.com/wls/docs70/webserv/assemble.html#1011066
Hope this helps,
Bruce
john wrote:
My WL7 application invokes methods on external subscriber
web-apps. I need to provide WSDLs for these external apps, since
they'll be implemented by our customers.
Currently, I create 'dummy' EJBs, then create .ears out of it,
run 'servicegen' to create a dummy webservice, then run
'clientgen' to create the WSDLs and the client stub classes
that I'll finally use. I'd like to avoid some of the above
steps. Ideally, I'd just create the appropriate Java interface
classes, then use some tool to create the WSDL and the
client-stub classes. Is this possible ?
-john -
SOAP wdsl generation problem j developer
hi im having a problem with wsdl file generated from jdeveloper.
I expose a pl/sql function as a web service. I can then conect to the soap url with a web browser and sucessfull publish data to the db from this , but if i take the wsdl file from jdeveloper in to a soap test client (magoo) i get an error, on anything that trys to post data back to the DB ???
the error is
No Deserializer found to deserialize a ':emp' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
im not using BPEL (which i know has some soap problems)
THIS IS THE SOAP MESSAGE THE WSDL FILE GENERATES
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:m='MyWebService-v9' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:ns1='http://oadev11/Company.xsd' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'>
<soapenv:Body soapenv:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'>
<m:addemp>
<emp>
<eid xsi:type='xsd:int'>7</eid>
<efirstname xsi:type='xsd:string'>mr</efirstname>
<elastname xsi:type='xsd:string'>magoo</elastname>
<addr>
<street xsi:type='xsd:string'>granby grove</street>
<city xsi:type='xsd:string'>southampton</city>
<state xsi:type='xsd:string'>uk</state>
<zip xsi:type='xsd:string'>so</zip>
</addr>
<salary xsi:type='xsd:double'>1000</salary>
</emp>
</m:addemp>
</soapenv:Body>
</soapenv:Envelope>
this returns an error,
No Deserializer found to deserialize a ':emp' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
ive tested the client with the googlesearchapi wsdl file, so the client is working ok, I think there might be a problem with the wsdl file generation. can anyone sugest what this might be?
conecting directly to the soap service url and submitting xml suggested by the interface, adds the entry to the databse and works fine
<emp xmlns:ns1="http://oadev11/Company.xsd"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="ns1:oadev11_EmployeeUser">
<eid xsi:type="xsd:int">7</eid>
<efirstname xsi:type="xsd:string">MR</efirstname>
<elastname xsi:type="xsd:string">MAGGO</elastname>
<addr xsi:type="ns1:oadev11_AddressUser">
<street xsi:type="xsd:string">Granby grove</street>
<city xsi:type="xsd:string">southampton</city>
<state xsi:type="xsd:string">uk</state>
<zip xsi:type="xsd:string">SO</zip>
</addr>
<salary xsi:type="xsd:double">1000</salary>
</emp>
This sucessfuly ads the entry to the databse any ideas please?Hi,
Action parameter is always under Opertaion tag of your wsdl. In your case it is
Action = rpc/http://siebel.com/CustomUI:ATDDQMatchWS
<operation name="ATDDQMatchWS">
<soap:operation soapAction="rpc/http://siebel.com/CustomUI:ATDDQMatchWS"/>
<input>
<soap:body use="literal" namespace="http://siebel.com/CustomUI"/>
</input>
<output>
<soap:body use="literal" namespace="http://siebel.com/CustomUI"/>
</output>
</operation>
It looks to me you are trying to invoke RC encoded webservice which is not supported in XI.
Reward points if find useful
Thanks
Amit -
Web service client stubs generation
Hi,
I try to generated model for WebDynpro application based on Web service (deprecated). WSDL file is valid. Stub classes generation is completed with compilation error. I found that the generator builds strange method for CMapLayerField complex type. There is setter with java.util.List param for MapLayer field but no one exists for Metafields field. Why for? Metafields field has the same cardinality as MapLayer one. Please, take me advance. I don't understand generation mechanism. I tried Axis2 and no problem was. How to fix this problem? How can I use Axis2 WSDL2Java generator instead of SAP Schema to Java generator?
The problem is below described in details. Compilation failed due to type cast error. The error message is:
The method setMapLayer(CMapLayer) in the type CMapLayerField is not applicable for the arguments (CMapLayer[])
Below I give some scrap from WSDL and generated Java class.
WSDL
==============
<s:complexType name="CMapLayerField">
<s:complexContent mixed="false">
<s:extension base="tns:CTable">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Metafields" type="tns:CMetafields" />
<s:element minOccurs="0" maxOccurs="1" name="MapLayer" type="tns:CMapLayer" />
<s:element minOccurs="1" maxOccurs="1" name="MapLayerFieldIsName" type="s:int" />
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>
Generated API class for CMapLayerField type
==============================
package com.test.model;
public class ComplexType_CMapLayerField
private com.test.model.proxies.types.CMapLayerField originalBean;
//skipped
private com.test.model.ComplexType_CMetafields metafields;
/** sets the JavaWrapper in the relationship**/
public void setMetafields(com.test.model.ComplexType_CMetafields arg)
this.metafields = arg;
sets the original bean in the relationship
public void setMetafields(com.test.model.proxies.types.CMetafields origBean)
if(this.metafields == null)
this.metafields = new com.test.model.ComplexType_CMetafields ();
this.metafields.setOriginalBean(origBean);
private java.util.List _mapLayer = null;
public void setMapLayer (java.util.List list)
com.test.model.proxies.types.CMapLayer[] array = new com.test.model.proxies.types.CMapLayer[list.size()];
for(int i=0;i<list.size();i++)
com.test.model.ComplexType_CMapLayer item = (com.test.model.ComplexType_CMapLayer)list.get(i);
array<i> = item.getOriginalBean();
getOriginalBean().setMapLayer(array);
this._mapLayer = list;
public void setMapLayer (com.test.model.proxies.types.CMapLayer[] args)
if(_mapLayer == null) _mapLayer = new java.util.ArrayList();
if (args == null ) return ;
for(int i=0;i<args.length;i++)
com.test.model.ComplexType_CMapLayer wrapper = new com.test.model.ComplexType_CMapLayer ();
wrapper.setOriginalBean(args<i>);
_mapLayer.add(wrapper);
//skipped
Generated stub class for CMapLayerField type
===================================
package com.test.model.proxies.types;
public class CMapLayerField extends com.test.model.proxies.types.CTable {
//some line were skipped
private com.test.model.proxies.types.CMetafields fMetafields;
public void setMetafields(com.test.model.proxies.types.CMetafields _Metafields) {
this._f_Metafields = _Metafields;
this._f_hasMetafields = true;
private com.test.model.proxies.types.CMapLayer fMapLayer;
private boolean fhasMapLayer;
public void setMapLayer(com.test.model.proxies.types.CMapLayer _MapLayer) {
this._f_MapLayer = _MapLayer;
this._f_hasMapLayer = true;Obsolete
-
ABAP Web Service client proxy - generation problems
Hi!
I tried to create an ABAP web service client proxy for many different web services -
for instance some of that listed at <a href="http://www.xmethods.net/">http://www.xmethods.net/</a> .
Almost on 99% of the WSDLs the client proxy generation failed.
For istance "<extension> not supported", or "<message...> must have at least one part",... .
Could anybody tell me what restrictions are to web services you can create a
ABAP client proxy for ?
In the SAP Web AS Java Stack there is no problem at all to generate a
client proxy for almost all of the xmethod-WebServices !
Is the ABAP Web Service proxy generation for production use ?
Regards
Frank RuggaberResolved through SAP Help. Refer SAP note# 0001403271.
-
Web Service Stub-generation with WTK
Hi there,
I hope someone can help me.
I just deployed a webservice using Axis.
WSDL: http://www.freewebs.com/sirpreis/CustomerWS.xml
WSDD (for deployment): http://www.freewebs.com/sirpreis/customerWS-WSDD.xml
The WS deploys fine, but now I want to generate stubs using the WTK stub generator. Unfortunately I get the following warnings:
warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
I don't know if that will become a problem...
Well now, three classes + src are generated
AuthSet.java/.class
CustomerWS.java/.class
CustomerWS_Stub.java/.class
In my webservice, the method "getAccountBalance" gets an "AuthSet" (which is set up of a String pwd and an int userID) as argument
(public int getAccountBalance(AuthSet auth) throws RemoteException {).
In the CustomerWS_Stub.java now there is a method "getAccountBalance", but it gets the following:
public int getAccountBalance(java.lang.String pwd, int userID) throws java.rmi.RemoteException {
Can anyone help me with that? I don't know what to do :(Hi,
I think its a problem of your wsdl-File. If you post it, it would be easier to find the problem. The wsdl-file don't provide the WS-I specifications.
Steve -
Web Service and Stub-generation with WTK
Hi there,
I hope someone can help me.
I just deployed a webservice using Axis.
WSDL: http://www.freewebs.com/sirpreis/CustomerWS.xml
WSDD (for deployment): http://www.freewebs.com/sirpreis/customerWS-WSDD.xml
The WS deploys fine, but now I want to generate stubs using the WTK stub generator. Unfortunately I get the following warnings:
warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
warning: R2716 WSI-BasicProfile ver. 1.0, namespace attribute not allowed in doc/lit for soapbind:body: "getAccountBalance"
I don't know if that will become a problem...
Well now, three classes + src are generated
AuthSet.java/.class
CustomerWS.java/.class
CustomerWS_Stub.java/.class
In my webservice, the method "getAccountBalance" gets an "AuthSet" (which is set up of a String pwd and an int userID) as argument
(public int getAccountBalance(AuthSet auth) throws RemoteException {).
In the CustomerWS_Stub.java now there is a method "getAccountBalance", but it gets the following:
public int getAccountBalance(java.lang.String pwd, int userID) throws java.rmi.RemoteException {
Can anyone help me with that? I don't know what to do :(Hi,
I think its a problem of your wsdl-File. If you post it, it would be easier to find the problem. The wsdl-file don't provide the WS-I specifications.
Steve
Maybe you are looking for
-
How to find a second point on a line given a point and distance
Hi All, My requirement is: Given a point on a line and distance, I have to find the second point. All geometries are in LRS. I tried using SDO_LRS.LOCATE_PT, it is returning the second point from the start of the segment but I want to locate the poin
-
Please can anyone help me install the programme, I have the serial number, but I cannot find the download link
-
Receiving PDF files over AS2 in 11g
Hi, We are in the process of setting up Oracle B2B for EDI transmissions. For one of the trading partners we have successfully set up ASN over AS2. Doc Protocol - OAG Document Type - SHOW_SHIPMENT_005 Once the partner receives the ASN, they send the
-
Hi I do have a basic setup installed; when request for a webservice comes, the gateway intercepts the request, applies some security policies and passes on the request to the webservice , which inturn is intercepted by the ServerAgent and applies som
-
BW prod: 'error in a formula function'
We have problem RSAR 194 ('error in a formula function') in data load. We use the following formula functions between IS and ODS (transfer/update rules): FISCPER_CALMONTH( MONAT, FISCVAR, LEFT( 4, FISCPER ), 0 ) LEFT( 4, CALMONTH_FISCPER( CALMONTH, '