WSDL To Java Stub Genaration Problem
I am using Rad7.0(Trail version) and websphere v6.0 for Generate Java bean skeleton through wsdl file which was already generated by Solcrop's (EDS Ide).Now the prob is the tool is not generating ibm-webservices-bnd.xmi .Earlier this things working fine in WebSphere 5.1 please provide good solution for this problem.
Thanks for these tips.
The problem with using such functionallity from JBuilder or IBM WebService Toolkit is, that i'd like built this proxies within my own program.
In my program you should be able to input the location of the WSDL file, receive it and the user can work with the proxy classes.
I need this functionallity in my own program without the help from any IDE.
The Apache Axis project offers a tool that do this, and i can use it, if I start it within a new process.
Helpful would be an API that offers me the functions, so that i can do this by calling some functions in my own program....
Thanks
MK
Similar Messages
-
WSDL to JAVA conversion problem
Hi,
I am facing a problem while building the Java stubs, skeletons and data files from my WSDL file using the WSDL2Java utility of Axis. It is not generating the expected number of classes. Am I having a problem 'coz my wsdl contains two namespaces ?it is pretty simple. if you use ant, just do this.
The best source of information is http://ws.apache.org/axis
<target name="wsdl2java">
<axis-wsdl2java url="C:/Server/wsdl/Test.wsdl"
all="true"
serverSide="true"
testcase="true"
verbose="true"
helperGen="true"
output="C:/Server/wsdl/wsdlsrc">
</axis-wsdl2java>
</target> -
HI!
I'd like to generate java stub classes by using the WSDL document.
After parsing the WSDL document, a java class with all available method calls should be created.
With IBM WebService Development Kit this is possible with the Apache Axis project wsdl4java.
Does someone know another way to do this, maybe with SUN webservice toolkit?
mfg
MKThanks for these tips.
The problem with using such functionallity from JBuilder or IBM WebService Toolkit is, that i'd like built this proxies within my own program.
In my program you should be able to input the location of the WSDL file, receive it and the user can work with the proxy classes.
I need this functionallity in my own program without the help from any IDE.
The Apache Axis project offers a tool that do this, and i can use it, if I start it within a new process.
Helpful would be an API that offers me the functions, so that i can do this by calling some functions in my own program....
Thanks
MK -
Converted WSDL into .java-files - and now?
I should implement a client for an existing web service. All I have is a .wsdl-file of the web service to call.
Therefore I used the eclipse's functionality to convert .wsdl into .java files, which generated some files for me, for example:
- interface XXX extending java.rmi.Remote
- interface XXXService extends javax.xml.rpc.Service
- class XXXProxy implements XXX
- class XXXServiceLocator extends org.apache.axis.client.Service
- class XXXSoapBindingStub extends org.apache.axis.client.Stub implements XXX
- class XXXRfcException extends org.apache.axis.AxisFault implements java.io.Serializable
- class XXXRfcExceptions implements java.io.Serializable
My question... what to do now? How can I get the service and call its functionality?
Your help is really, REALLY appreciated...Hi,
Write client application like below.
public class Client{
public static void main(String [] args) throws Exception {
// Make a service
XXXService service = new XXXServiceLocator();
// Now use the service to get a stub which implements the SDI.
AddressBook port = service.getAddressBook();
// Make the actual call
Address address = new Address(...);
port.addEntry("Russell Butek", address);
Thanks&Regards,
M.Kumaraswamy. -
Hi
Program is giving unpredictable behaviour.
Am trying to consume webservice using Axis Client.
When running as stand alone Java programs its working fine.
But when deployed on OC4J its giving problem
Error processing WSDL document: java.lang.ClassCastException: java.util.ArrayList
Could you please give some hint
Regards
BajarangHere is the program
QName serviceQN = new QName(targetNamespace,serviceName );
System.out.println("After serviceQN "+ serviceQN);
QName portQN = new QName( targetNamespace, portName );
System.out.println("After port "+ portQN);
// This Call object will be used the invocation
Service service = new Service(implURI,serviceQN);
System.out.println("After service "+ service);
Call call = (Call) service.createCall();
System.out.println("After call "+ call);
// Now make the call...
System.out.println("Invoking service>> " + serviceName + " <<...");
call.setOperation(portQN,operationName);
call.invoke( inputParams );
System.out.println("Result returned from call to "+ serviceName+" ");
Error while execution
javax.xml.rpc.ServiceException: Error processing WSDL document:
java.lang.ClassCastException: java.util.ArrayList -
sir i have given lot of effort but i am not able to solve my problem either with notifiers or with occurence fn,probably i do not know how to use these synchronisation tools.
sir i am using datasocket read ,i am communicating with java but my problem is that bcz im using while loop to see if value has changed my labview consumes all the processors time ,sir i want a event like thing so that while loop is not in continuous loopHi Sam,
I want to pass along a couple of tips that will get you more and better response on this list.
1) There is an un-written rule that says more "stars" is better than just one star. Giving a one star rating will probably eliminate that responder from individuals that are willing to anser your question.
2) If someone gives you an answer that meets your needs, reply to that answer and say that it worked.
3) If someone suggests that you look at an example, DO IT! LV comes with a wonderful set of examples that demonstate almost all of the core functionality of LV. Familiarity with all of the LV examples will get you through about 80% of the Certified LabVIEW Developer exam.
4) If you have a question first search the examples for something tha
t may help you. If you can not find an example that is exactly what you want, find one that is close and post a question along the lines of "I want to do something similar to example X, how can I modify it to do Y".
5) Some of the greatest LabVIEW minds offer there services and advice for free on this exchange. If you treat them good, they can get you through almost every challenge that can be encountered in LV.
6) If English is not your native language, post your question in the language you favor. There is probably someone around that can help. "We're big, we're bad, we're international!"
Trying to help,
Welcome to the forum!
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction -
Re Java Stored Procedure Problem
Ben
There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
Is there a SAX parser with PL/SQL??Ben
There appear to be some problem with the forum. It doesn't want to show my response to your post with the subject "Java Stored Procedure Problem". See the answer to this thread for an example of how to do this...
Is there a SAX parser with PL/SQL?? -
I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
Permission Problems in RDBMS 8.1.6 and 8.1.7".
It will be accessible from Oracle Support's "Metalink" site.
"How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
Problem Description
Periodically an application running in the Enterprise Java Engine
(EJE) formerly known as the "Oracle 8i JVM", "the JSERVER component", or
the "Aurora JVM" will fail with a "java 2" permissions error having the
following format :
Note : Message shown below have been reformatted for easier readability.
java.sql.SQLException: ORA-29532: Java call terminated by uncaught Java exception:
usually followed by a detailed error message similar to one of the following
messages :
Example # 1
java.security.AccessControlException: the Permission
(java.net.SocketPermission hostname resolve)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 2
java.security.AccessControlException: the Permission
(java.util.PropertyPermission * read,write)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Example # 3
java.security.AccessControlException: the Permission
(java.io.FilePermission \matt1.gif read)
has not been granted by dbms_java.grant_permission to
SchemaProtectionDomain(SCOTT|PolicyTableProxy(SCOTT))
Explanation
The java 2 permission stated in line # 2 of each of the above "Examples"
has not been granted to the user specified in line 4 of the above "Examples".
Solution Description
The methodology to solve this issue is identical for all java 2 permissions
cases.
1) Format a call "dbms_java.grant_permission" procedure as described below.
2) Logon as SYS or SYSTEM
3) Issue the TWO commands shown below
4) Logoff as SYS or SYSTEM
5) Retry your application
For Example # 1
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.net.SocketPermission',
'hostname',
'resolve');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 2
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.util.PropertyPermission',
'read,write');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
For Example # 3
1) Logon as SYS or SYSTEM
2) Issue the following commands :
a) call dbms_java.grant_permission('SCOTT',
'java.io.FilePermission',
'\matt1.gif',
'read');
b) commit;
Note: Commit is mandatory !!
3) Logoff as SYS or SYSTEM
4) Retry your application
References
For more details on java 2 permissions and security within the EJE, review
Chapter 5, in the Java Developer's Guide. entitled,
"Security For Oracle8i Java Applications"
The RDBMS 8.1.7 version can be found at :
http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/java.817/index.htmHi, Don,
I solved the problem of security exception I mentioned at java procedure topic as following:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.SecurityException
I tried to use your solution as following:
call dbms_java.grant_permission('SDE', 'java.net.SocketPermission', 'ORCL.COHPA.UCF.EDU','resolve');
but SQL*plus gave me a error message:
invalid collumn.
What's the problem?
However, I call a grant command as following:
SQL> grant JAVASYSPRIV to sde;
and then that exception is gone. What's the difference between dbms_java.grant_permission and grant command?
Thanks
Bing
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by don -- oracle support:
I'm in the process of publishing the following note (134280.1), titled "How to Resolve ORA-29532 Java 2
Permission Problems in RDBMS 8.1.6 and 8.1.7".
It will be accessible from Oracle Support's "Metalink" site.
"How to Resolve ORA-29532 Java 2 Permission Problems in RDBMS 8.1.6 and 8.1.7".
Problem Description
<HR></BLOCKQUOTE>
null -
I've got WSDL file. I want to produce Java sources for that WSDL.
When I try to use WebService context menu function - I've got restriction:
"SAP Netweaver not Apache Axis"
How can I convert WSDL to Java skeleton ??Hello Christian!
I try to use "Developer Studio 7.10" and "Developer Studio 7.10 CE".
When I try to use DS 7.10 CE - I've got exception: "IWAB0014E Unexpected exception occured."
[code]
IWAB0014E Unexpected exception occured.
java.lang.NullPointerException
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.getSOAPBindingAnnotation(ProxyGeneratorNew.java:2803)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.genWebServiceAnnotation(ProxyGeneratorNew.java:2845)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.generateSEI(ProxyGeneratorNew.java:2922)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.generateInterfaces(ProxyGeneratorNew.java:1031)
at com.sap.engine.services.webservices.espbase.client.ProxyGeneratorNew.generateAll(ProxyGeneratorNew.java:335)
at com.sap.ide.es.ws.jee5.runtime.provider.internal.generator.topdown.Ejb3TopDownProviderGenerator.generateProvider(Ejb3TopDownProviderGenerator.java:260)
at com.sap.ide.es.ws.jee5.core.provider.commands.GenerateTopDownWebService.doWork(GenerateTopDownWebService.java:28)
at com.sap.ide.es.ws.jee5.core.provider.commands.OneShotOperation.execute(OneShotOperation.java:51)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.runCommand(CommandFragmentEngine.java:413)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.visitTop(CommandFragmentEngine.java:353)
at org.eclipse.wst.command.internal.env.core.fragment.CommandFragmentEngine.moveForwardToNextStop(CommandFragmentEngine.java:251)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager$5.run(SimpleCommandEngineManager.java:250)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:851)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleCommandEngineManager.runForwardToNextStop(SimpleCommandEngineManager.java:220)
at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.runForwardToNextStop(WizardPageManager.java:94)
at org.eclipse.wst.command.internal.env.ui.widgets.WizardPageManager.getNextPage(WizardPageManager.java:145)
at org.eclipse.wst.command.internal.env.ui.widgets.SimpleWizardPage.getNextPage(SimpleWizardPage.java:136)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:751)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:351)
at org.eclipse.jface.dialogs.Dialog$3.widgetSelected(Dialog.java:660)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.wst.command.internal.env.ui.widgets.popup.DynamicPopupWizard.run(DynamicPopupWizard.java:130)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1914)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1878)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:419)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
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:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
[/code]
When I try to use simple DS 7.10 - I've got strange situation: when I try to generate Java Skeleton as you write before, I can't choose "SAP Netweaver" as server runtime - only Axis available!!
Can you help me register "SAP Netweaver" runtime in eclipse?
BR Dedevich Alexey
P.S. In Eclipse preference I see "SAP Netweaver" runtime? but when I try to generate Java skeleton from wsdl - there are no any runtime's except Axis. -
Different response when BPEL PM invokes and when Java stub invokes
I have the same Web Service invocation one from a Java stub and the other from the BPEL process manager behave differently with the latter being wrong. The REQUEST/RESPONSE pairs are shown below. Also in the latter case, although the response comes back very swiftly (as evidenced on the TCP Tunnel), the BPEL process just hangs and times out.
Can anyone let me know how to debug such cases.
Thanks and Regards.
REQUEST (FROM BPEL PROCESS VIEWED THROUGH TCP TUNNEL)
POST /CurrencyConvertor.asmx HTTP/1.0
Content-Type: text/xml; charset=utf-8
Accept: application/soap+xml, application/dime, multipart/related, text/*
User-Agent: Axis/#axisVersion#
Host: localhost:1235
Cache-Control: no-cache
Pragma: no-cache
SOAPAction: "http://www.webserviceX.NET/ConversionRate"
Content-Length: 497
Connection: close
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><ConversionRate xmlns="http://www.webserviceX.NET/">
<FromCurrency xmlns="http://xmlns.oracle.com/ExternalCurrencyConverterService">SGD</FromCurrency>
<ToCurrency xmlns="http://xmlns.oracle.com/ExternalCurrencyConverterService">INR</ToCurrency>
</ConversionRate></soapenv:Body></soapenv:Envelope>
RESPONSE (FROM REMOTE WEB SERVICE VIEWD THROUGH TCP TUNNEL)
HTTP/1.0 200 OK
Date: Thu, 01 Dec 2005 09:50:50 GMT
Content-Length: 377
Content-Type: text/xml; charset=utf-8
Cache-Control: private, max-age=0
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Via: 1.1 apac-nc03 (NetCache NetApp/5.6.2R1)
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ConversionRateResponse xmlns="http://www.webserviceX.NET/">
<ConversionRateResult>0</ConversionRateResult>
</ConversionRateResponse></soap:Body></soap:Envelope>
REQUEST FROM JAVA STUB (VIEWED THROUGH JDEVELOPER TCP MONITER)
POST http://www.webservicex.net/CurrencyConvertor.asmx HTTP/1.1
Host: www.webservicex.net
Proxy-Connection: Keep-Alive
Connection: TE
TE: trailers, deflate, gzip, compress
User-Agent: RPT-HTTPClient/0.3-3
SOAPAction: "http://www.webserviceX.NET/ConversionRate"
Accept-Encoding: gzip, x-gzip, compress, x-compress
Content-type: text/xml; charset=utf-8
Content-length: 461
<?xml version = '1.0' encoding = 'UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ConversionRate xmlns="http://www.webserviceX.NET/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FromCurrency>SGD</FromCurrency>
<ToCurrency>INR</ToCurrency>
</ConversionRate>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
RESPONSE (VIEWED THROUGH JDEVELOPER TCP MONITER)
HTTP/1.1 100 Continue
Date: Thu, 01 Dec 2005 09:31:55 GMT
Via: 1.1 apac-nc03 (NetCache NetApp/5.6.2R1)
HTTP/1.1 200 OK
Date: Thu, 01 Dec 2005 09:31:52 GMT
Content-Length: 383
Content-Type: text/xml; charset=utf-8
Cache-Control: private, max-age=0
Server: Microsoft-IIS/6.0
MicrosoftOfficeWebServer: 5.0_Pub
X-Powered-By: ASP.NET
X-AspNet-Version: 1.1.4322
Via: 1.1 apac-nc03 (NetCache NetApp/5.6.2R1)
<?xml version = '1.0' encoding = 'utf-8'?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<ConversionRateResponse xmlns="http://www.webserviceX.NET/">
<ConversionRateResult>27.1899</ConversionRateResult>
</ConversionRateResponse>
</soap:Body>
</soap:Envelope>Just want to add that the BPEL PM also hangs when I "invoke" this web service. The debug level trace is as follows:
Appreciate any help.
Best Regards.
<2005-12-01 18:11:57,242> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
ogError> Error while invoking bean "delivery": Waiting for response has timed ou
t. The conversation id is cce7adadf6056580:1fd6bea:107e45eb2e6:-7f01. Please che
ck the process instance for detail.
com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for response ha
s timed out. The conversation id is cce7adadf6056580:1fd6bea:107e45eb2e6:-7f01.
Please check the process instance for detail.
at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:112)
at IDeliveryBean_StatelessSessionBeanWrapper22.request(IDeliveryBean_Sta
telessSessionBeanWrapper22.java:288)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryServi
ce.java:101)
at com.oracle.bpel.client.delivery.DeliveryService.request(DeliveryServi
ce.java:65)
at ngDoInitiate.jspService(_ngDoInitiate.java:253)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:5
6)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequ
estDispatcher.java:121)
at com.evermind.server.http.EvermindPageContext.include(EvermindPageCont
ext.java:267)
at displayProcess.jspService(_displayProcess.java:700)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:5
6)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:810)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequ
estDispatcher.java:220)
at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:152)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
stDispatcher.java:649)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
vletRequestDispatcher.java:322)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
tHandler.java:798)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:278)
at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
va:120)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
sableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Caused by: com.oracle.bpel.client.delivery.ReceiveTimeOutException: Waiting for
response has timed out. The conversation id is cce7adadf6056580:1fd6bea:107e45eb
2e6:-7f01. Please check the process instance for detail.
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequestAnyTyp
e(DeliveryHandler.java:524)
at com.collaxa.cube.engine.delivery.DeliveryHandler.initialRequest(Deliv
eryHandler.java:426)
at com.collaxa.cube.engine.delivery.DeliveryHandler.request(DeliveryHand
ler.java:133)
at com.collaxa.cube.ejb.impl.DeliveryBean.request(DeliveryBean.java:97)
... 29 more -
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. -
Hi all,
I was able to deploy the Java class into the database (the message says Success). And then I am able to desc MyJavaSproc name in SQL*Plus and see the Pl/SQL parameter and return types. But when I use either call or select from dual, it tells me the the Java class (MyJavaName) is not there. The Oracle error is this: ORA-29540: class MyJavaName does not exist. I am running 10gR2. I did encounter a problem when I first tried to deploy using J2SE 1.5 as source and target and JDev suggested that I change that to an earlier version. I changed that to 1.4 and then deployed successfully.
Could someone help me with this? Thanks a lot.
BenThanks. I created a simple file Java class with JDev (10g 1.3). I have some static methods (according to Oracle docs) in the class. Then by following JDev's help doc, I created a deployment profile for the project using JDec. I then added the Java methods that I wanted to deploy as sprocs. As I said, after I changed the J2SE from 1.5 (the default) to 1.4, the deployment was successful. I can see it using desc in SQL*Plus. I can also see it in the database connection tab in JDev. I can open the class stub created by JDev, and the sprocs and funcs are listed under Functions and Procedures on the database connection tab.
Thanks.
Ben -
Error from wsdl in java studio
Hi folks,
I'm trying to create a web service with Java Studio Enterprise from a wsdl file but it throw me this error:
"error: in message "MessageRichiestaDaWccATtm", part "arg1" must specify a "type" attribute.
The wsdl fie is validated by XmlSpy and I'm able to generate java classes with Axis, but I want generate all classes with Java Studio.
Can anyone help me?
Thank you very much.
This is the wsdl file :
<wsdl:definitions targetNamespace="http://www.your-company.com/totale.wsdl" xmlns:tns="http://www.your-company.com/totale.wsdl" name="totale" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema targetNamespace="http://www.your-company.com/totale.wsdl">
<xsd:element name="richiestaDaWccATtm" type="tns:richiestaDaWccATtmType"/>
<xsd:element name="rispostaDaTtmAWcc" type="tns:rispostaDaTtmAWccType"/>
<xsd:complexType name="richiestaDaWccATtmType">
<xsd:choice>
<xsd:element name="letturaListaClienti" type="tns:IdCliente"/>
<xsd:element name="letturaListaOperatori" type="tns:IdCliente"/>
<xsd:element name="letturaProfiloCliente" type="tns:IdCliente"/>
<xsd:element name="letturaAnagrafica" type="tns:SelezioneEntitaCliente"/>
<xsd:element name="aperturaPreReclamo" type="tns:AperturaPreReclamo"/>
<xsd:element name="annullamentoReclamo" type="tns:RichiestaSuReclamo"/>
<xsd:element name="inserimentoMemoCliente" type="tns:InserimentoMemoCliente"/>
<xsd:element name="variazioneCriticita" type="tns:VariazioneCriticita"/>
<xsd:element name="letturaCronologia" type="tns:IdReclamo"/>
<xsd:element name="rifiutoChiusura" type="tns:RifiutoChiusura"/>
<xsd:element name="accettazioneChiusura" type="tns:AccettazioneChiusura"/>
<xsd:element name="ricercaReclami" type="tns:RicercaReclami"/>
<xsd:element name="letturaReclamo" type="tns:IdReclamo"/>
</xsd:choice>
</xsd:complexType>
<xsd:complexType name="rispostaDaTtmAWccType">
<xsd:choice>
<xsd:element name="ackDaTtmAWcc" type="tns:AckDaTtmAWcc"/>
<xsd:element name="nackDaTtmAWcc" type="tns:NackDaTtmAWcc"/>
</xsd:choice>
</xsd:complexType>
<xsd:simpleType name="nomeReclamanteType1">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="30"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="telefonoReclamanteType">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="14"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="idEntitaType1">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="noteReclamanteType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="100"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizioneAttivitaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="100"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="AperturaPreReclamo">
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="idOperatore" type="tns:IdOperatore"/>
<xsd:element name="nomeReclamante" type="tns:nomeReclamanteType1"/>
<xsd:element name="telefonoReclamante" type="tns:telefonoReclamanteType"/>
<xsd:element name="emailReclamante" type="tns:Email"/>
<xsd:element name="codTipologiaEntita" type="tns:CodTipologiaEntita"/>
<xsd:element name="idEntita" type="tns:idEntitaType1"/>
<xsd:element name="codSede" type="tns:CodSede"/>
<xsd:element name="sdf" type="tns:CodSdf"/>
<xsd:element name="noteReclamante" type="tns:noteReclamanteType"/>
<xsd:element name="descrizioneAttivita" type="tns:descrizioneAttivitaType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="singolaMemoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="400"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="InserimentoMemoCliente">
<xsd:complexContent>
<xsd:extension base="tns:RichiestaSuReclamo">
<xsd:sequence>
<xsd:element name="singolaMemo" type="tns:singolaMemoType"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="VariazioneCriticita">
<xsd:complexContent>
<xsd:extension base="tns:RichiestaSuReclamo">
<xsd:sequence>
<xsd:element name="sdf" type="tns:CodSdf"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="progressivoType">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="10"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="RifiutoChiusura">
<xsd:complexContent>
<xsd:restriction base="tns:AccettazioneChiusura">
<xsd:sequence>
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="anno" type="xsd:gYear"/>
<xsd:element name="progressivo" type="tns:progressivoType"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="idOperatore" type="tns:IdOperatore"/>
</xsd:sequence>
<xsd:sequence>
<xsd:element name="note" type="tns:NoteChiusura"/>
</xsd:sequence>
</xsd:sequence>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AccettazioneChiusura">
<xsd:complexContent>
<xsd:extension base="tns:RichiestaSuReclamo">
<xsd:sequence>
<xsd:element name="note" type="tns:NoteChiusura" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="statiType">
<xsd:sequence maxOccurs="unbounded">
<xsd:element name="Stato" type="tns:Stato"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="nomeReclamanteType2">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="RicercaReclami">
<xsd:complexContent>
<xsd:extension base="tns:SelezioneEntitaCliente">
<xsd:sequence>
<xsd:element name="includiCreatiPrereclami" type="xsd:boolean"/>
<xsd:element name="includiCreatiReclamo" type="xsd:boolean"/>
<xsd:element name="includiCreatiAllarme" type="xsd:boolean"/>
<xsd:element name="stati" type="tns:statiType" minOccurs="0"/>
<xsd:element name="nomeReclamante" type="tns:nomeReclamanteType2" minOccurs="0"/>
<xsd:element name="sdf" type="tns:CodSdf" minOccurs="0"/>
<xsd:element name="dataOraInizioSegnalazioneDa" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="dataOraInizioSegnalazioneA" type="xsd:dateTime" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="RichiestaSuReclamo">
<xsd:complexContent>
<xsd:extension base="tns:IdReclamo">
<xsd:sequence>
<xsd:element name="idOperatore" type="tns:IdOperatore"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="descrSedeType">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrTipologiaEntitaType">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="128"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="idEntitaType2">
<xsd:restriction base="tns:CampoRicercaLike">
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="SelezioneEntitaCliente">
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="codSede" type="tns:CodSede" minOccurs="0"/>
<xsd:element name="descrSede" type="tns:descrSedeType" minOccurs="0"/>
<xsd:element name="codTipologiaEntita" type="tns:CodTipologiaEntita" minOccurs="0"/>
<xsd:element name="descrTipologiaEntita" type="tns:descrTipologiaEntitaType" minOccurs="0"/>
<xsd:element name="idEntita" type="tns:idEntitaType2" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="AckDaTtmAWcc">
<xsd:choice>
<xsd:element name="rispostaLetturaListaClienti" type="tns:RispostaLetturaListaClienti"/>
<xsd:element name="rispostaLetturaListaOperatori" type="tns:RispostaLetturaListaOperatori"/>
<xsd:element name="rispostaLetturaProfiloCliente" type="tns:RispostaLetturaProfiloCliente"/>
<xsd:element name="rispostaLetturaAnagrafica" type="tns:RispostaLetturaAnagrafica"/>
<xsd:element name="rispostaAperturaPreReclamo" type="tns:RispostaAperturaPreReclamo"/>
<xsd:element name="rispostaAnnullamentoReclamo" type="tns:Ack"/>
<xsd:element name="rispostaInserimentoMemoCliente" type="tns:Ack"/>
<xsd:element name="rispostaVariazioneCriticita" type="tns:Ack"/>
<xsd:element name="rispostaLetturaCronologia" type="tns:RispostaLetturaCronologia"/>
<xsd:element name="rispostaRifiutoChiusura" type="tns:Ack"/>
<xsd:element name="rispostaAccettazioneChiusura" type="tns:Ack"/>
<xsd:element name="rispostaRicercaReclami" type="tns:RispostaRicercaReclami"/>
<xsd:element name="rispostaLetturaReclamo" type="tns:RispostaLetturaReclamo"/>
</xsd:choice>
</xsd:complexType>
<xsd:simpleType name="problemaType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="CLI_ERR"/>
<xsd:enumeration value="CAT_CLI_ERR"/>
<xsd:enumeration value="OP_ERR"/>
<xsd:enumeration value="CLI_NO_ABI"/>
<xsd:enumeration value="IMP_ERR"/>
<xsd:enumeration value="DATI_ERR"/>
<xsd:enumeration value="OP_SU_RECL_NON_AMM"/>
<xsd:enumeration value="REC_ERR"/>
<xsd:enumeration value="CONN_DB_ESA"/>
<xsd:enumeration value="NO_DB"/>
<xsd:enumeration value="TTM_ERR"/>
<xsd:enumeration value="NO_XML"/>
<xsd:enumeration value="XML_ERR"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="dettaglioType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="300"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="NackDaTtmAWcc">
<xsd:sequence>
<xsd:element name="problema" type="tns:problemaType"/>
<xsd:element name="dettaglio" type="tns:dettaglioType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="codiceFiscaleType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="16"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="cittaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="indirizzoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="capType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="provinciaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="2"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="referenteType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="telefonoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="14"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="faxType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="14"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="emailType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="categoriaType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizione50Type">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizione128Type">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="128"/>
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="sdfType">
<xsd:sequence>
<xsd:element name="codice" type="tns:CodSdf"/>
<xsd:element name="descrizione" type="tns:descrizione50Type"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="tipologiaEntitaType">
<xsd:sequence>
<xsd:element name="codice" type="tns:CodTipologiaEntita"/>
<xsd:element name="descrizione" type="tns:descrizione128Type"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaProfiloCliente">
<xsd:sequence>
<xsd:element name="ragioneSociale" type="tns:RagioneSociale"/>
<xsd:element name="codiceFiscale" type="tns:codiceFiscaleType" minOccurs="0"/>
<xsd:element name="citta" type="tns:cittaType" minOccurs="0"/>
<xsd:element name="indirizzo" type="tns:indirizzoType" minOccurs="0"/>
<xsd:element name="cap" type="tns:capType" minOccurs="0"/>
<xsd:element name="provincia" type="tns:provinciaType" minOccurs="0"/>
<xsd:element name="referente" type="tns:referenteType" minOccurs="0"/>
<xsd:element name="telefono" type="tns:telefonoType" minOccurs="0"/>
<xsd:element name="fax" type="tns:faxType" minOccurs="0"/>
<xsd:element name="email" type="tns:emailType" minOccurs="0"/>
<xsd:element name="soglia1" type="tns:Soglia"/>
<xsd:element name="soglia2" type="tns:Soglia"/>
<xsd:element name="soglia3" type="tns:Soglia"/>
<xsd:element name="flagStoriaGuasto" type="xsd:boolean"/>
<xsd:element name="flagConfermaChiusura" type="xsd:boolean"/>
<xsd:element name="flagVariazioneCriticita" type="xsd:boolean"/>
<xsd:element name="flagInglese" type="xsd:boolean"/>
<xsd:element name="categoria" type="tns:categoriaType" minOccurs="0"/>
<xsd:element name="sdf" type="tns:sdfType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="tipologiaEntita" type="tns:tipologiaEntitaType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="entitaType">
<xsd:sequence>
<xsd:element name="idEntita" type="tns:IdEntita"/>
<xsd:element name="tipologiaEntita" type="tns:CodTipologiaEntita"/>
<xsd:element name="sede" type="tns:Sede"/>
<xsd:element name="sede2" type="tns:Sede" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaAnagrafica">
<xsd:sequence>
<xsd:element name="entita" type="tns:entitaType" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="flagRisultatoParziale" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaAperturaPreReclamo">
<xsd:complexContent>
<xsd:extension base="tns:IdReclamo">
<xsd:sequence>
<xsd:element name="dataOraSegnalazione" type="xsd:dateTime"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="variazioneStatoType">
<xsd:complexContent>
<xsd:extension base="tns:VariazioneReclamo">
<xsd:sequence>
<xsd:element name="stato" type="tns:Stato"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaCronologia">
<xsd:sequence>
<xsd:element name="variazioneStato" type="tns:variazioneStatoType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaRicercaReclami">
<xsd:sequence>
<xsd:element name="reclamo" type="tns:Reclamo" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="flagRisultatoParziale" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaReclamo">
<xsd:complexContent>
<xsd:extension base="tns:Reclamo">
<xsd:sequence>
<xsd:element name="memo" type="tns:Memo" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="idType">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="5"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="operatoreWebType">
<xsd:sequence>
<xsd:element name="id" type="tns:idType"/>
<xsd:element name="descrizione" type="tns:DescrizioneOperatore"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaListaOperatori">
<xsd:sequence>
<xsd:element name="operatoreWeb" type="tns:operatoreWebType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="clienteType">
<xsd:sequence>
<xsd:element name="id" type="tns:IdCliente"/>
<xsd:element name="ragioneSociale" type="tns:RagioneSociale"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RispostaLetturaListaClienti">
<xsd:sequence>
<xsd:element name="cliente" type="tns:clienteType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="VariazioneReclamo">
<xsd:sequence>
<xsd:element name="dataVariazione" type="xsd:dateTime"/>
<xsd:element name="operatore" type="tns:DescrizioneOperatore" minOccurs="0"/>
<xsd:element name="flagVariazioneTramiteWeb" type="xsd:boolean" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Memo">
<xsd:complexContent>
<xsd:extension base="tns:VariazioneReclamo">
<xsd:sequence>
<xsd:element name="singolaMemo" type="tns:singolaMemoType"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="codMalfunzionamentoType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="4"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="noteChiusuraType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="140"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizioneRiparazioneType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="tipoAperturaType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Reclamo"/>
<xsd:enumeration value="PreReclamo"/>
<xsd:enumeration value="Allarme"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="modalitaAperturaType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Manuale"/>
<xsd:enumeration value="Automatica"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="tipoType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="SISU"/>
<xsd:enumeration value="SCON"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="tempoType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Risposta"/>
<xsd:enumeration value="Intervento"/>
<xsd:enumeration value="Ripristino"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="noteType" >
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="sospensioneType">
<xsd:sequence>
<xsd:element name="tipo" type="tns:tipoType"/>
<xsd:element name="tempo" type="tns:tempoType"/>
<xsd:element name="inizio" type="xsd:dateTime"/>
<xsd:element name="fine" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="noteType" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Reclamo">
<xsd:sequence>
<xsd:element name="idReclamo" type="tns:IdReclamo"/>
<xsd:element name="creatoDa" type="tns:DescrizioneOperatore"/>
<xsd:element name="nomeReclamante" type="tns:nomeReclamanteType1"/>
<xsd:element name="telefonoReclamante" type="tns:telefonoReclamanteType"/>
<xsd:element name="emailReclamante" type="tns:Email" minOccurs="0"/>
<xsd:element name="sede" type="tns:Sede"/>
<xsd:element name="tipologiaEntita" type="tns:CodTipologiaEntita"/>
<xsd:element name="idEntita" type="tns:IdEntita"/>
<xsd:element name="sdf" type="tns:CodSdf"/>
<xsd:element name="stato" type="tns:Stato"/>
<xsd:element name="operatore" type="tns:DescrizioneOperatore" minOccurs="0"/>
<xsd:element name="dataOraSegnalazione" type="xsd:dateTime"/>
<xsd:element name="dataOraChiusura" type="xsd:dateTime" minOccurs="0"/>
<xsd:element name="codMalfunzionamento" type="tns:codMalfunzionamentoType" minOccurs="0"/>
<xsd:element name="noteChiusura" type="tns:noteChiusuraType" minOccurs="0"/>
<xsd:element name="noteReclamante" type="tns:noteReclamanteType" minOccurs="0"/>
<xsd:element name="descrizioneRiparazione" type="tns:descrizioneRiparazioneType" minOccurs="0"/>
<xsd:element name="flagMemoClientiEsistenti" type="xsd:boolean"/>
<xsd:element name="flagConRiserva" type="xsd:boolean"/>
<xsd:element name="tipoApertura" type="tns:tipoAperturaType"/>
<xsd:element name="modalitaApertura" type="tns:modalitaAperturaType"/>
<xsd:element name="sospensione" type="tns:sospensioneType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="codiceType">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="8"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="descrizioneType">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="Sede">
<xsd:sequence>
<xsd:element name="codice" type="tns:codiceType"/>
<xsd:element name="descrizione" type="tns:descrizioneType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="IdReclamo">
<xsd:sequence>
<xsd:element name="idCliente" type="tns:IdCliente"/>
<xsd:element name="anno" type="xsd:gYear"/>
<xsd:element name="progressivo" type="tns:progressivoType"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="CampoRicercaLike">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="IdOperatore">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="5"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CodSede">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="8"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="NoteChiusura">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="140"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Ack">
<xsd:restriction base="xsd:dateTime"/>
</xsd:simpleType>
<xsd:simpleType name="DescrizioneOperatore">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="30"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="RagioneSociale">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="150"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Soglia">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="6"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="IdEntita">
<xsd:restriction base="xsd:string">
<xsd:minLength value="1"/>
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="IdCliente">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="15" fixed="true"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Stato">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Accettato"/>
<xsd:enumeration value="Annullato"/>
<xsd:enumeration value="Chiuso"/>
<xsd:enumeration value="In lavorazione"/>
<xsd:enumeration value="Preso in carico"/>
<xsd:enumeration value="Proposto in chiusura"/>
<xsd:enumeration value="Rifiutato"/>
<xsd:enumeration value="In coda"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CodTipologiaEntita">
<xsd:restriction base="xsd:long">
<xsd:totalDigits value="5"/>
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CodSdf">
<xsd:restriction base="xsd:byte">
<xsd:minInclusive value="-1"/>
<xsd:maxInclusive value="100"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Email">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
<xsd:pattern value="[^\s@]+@[^\s@]+\.[^\s@]+"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="MessageRichiestaDaWccATtm">
<wsdl:part name="arg1" element="tns:richiestaDaWccATtm"/>
</wsdl:message>
<wsdl:message name="MessageRispostaDaTtmAWcc">
<wsdl:part name="arg1" element="tns:rispostaDaTtmAWcc"/>
</wsdl:message>
<wsdl:portType name="totalePortType">
<wsdl:operation name="richiestaServizio">
<wsdl:input message="tns:MessageRichiestaDaWccATtm" name="messageInput"/>
<wsdl:output message="tns:MessageRispostaDaTtmAWcc" name="messageOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TtmBinding" type="tns:totalePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="richiestaServizio">
<soap:operation soapAction="" style="rpc"/>
<wsdl:input name="messageInput">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.your-company.com/totale.wsdl"/>
</wsdl:input>
<wsdl:output name="messageOutput">
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.your-company.com/totale.wsdl"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TTM">
<wsdl:port binding="tns:TtmBinding" name="TtmBindingPort">
<soap:address location="http://localhost:8080/axis/services/TtmBindingPort"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>This is an RPC/encoded web service. In such a service the parts of a message must have a type attribute,
not element attributes.
<wsdl:message name="MessageRichiestaDaWccATtm">
<wsdl:part name="arg1" element="tns:richiestaDaWccATtm"/>
</wsdl:message>
<wsdl:message name="MessageRispostaDaTtmAWcc">
<wsdl:part name="arg1" element="tns:rispostaDaTtmAWcc"/>
</wsdl:message>
these should be something like:
<wsdl:message name="MessageRichiestaDaWccATtm">
<wsdl:part name="arg1" type="tns:richiestaDaWccATtmType"/>
</wsdl:message>
<wsdl:message name="MessageRispostaDaTtmAWcc">
<wsdl:part name="arg1" type="tns:rispostaDaTtmAWccType"/>
</wsdl:message>
I should not that the schema in this WSDL include xsd:choice so you are likely to get an error or have
the schema fragments bound to a SOAPElement.
In JAXRPC 2.0 due out next year choice will have better binding. -
Jdeveloper- web service- can't produce wsdl for java List
Hi-
I think this is a jdeveoper bug. It looks like the same bug as #4706306 in Jdeveloper 10g bugs.
There is a workaround suggest to use additional classes in the web service. But it does not work on 11g.
Details of the problem ........
I am trying to create a web service and client using jdeveoper 11g.
For some reason, the wsdl generated from the jdeveoper is incorrect. My java classes used List.
Apparently, jdeveoper does not like List . I can reproduce the problem using three files as attached.
the files are 1)Baby.java, 2)Papa.java, and 3)MyCall.java. The webservice is MyCall Class and the web method is getPapa().
After I created the web service and its wsdl, I then used the wsdl to create a client. then files are generated from the
wsdl for client . One of the file as in 4)Papa.java has a wrong List<Object>. It should be List<Baby>.
I can't move forward because of this problem. If any one can help, I'll be very appreciated.
Thanks!
Jason
1) ---- Baby.java-------------------
package yexp;
public class Baby
private String name;
public void setName(String name)
this.name = name;
public String getName()
return name;
2) Papa.java ---------------------
package yexp;
import java.util.List;
import java.util.ArrayList;
public class Papa
List<Baby> babyList;
public List<Baby> getBabyList()
return babyList;
public void setBabyList(List<Baby> babyList)
this.babyList = babyList;
3) MyCall.java ------------------------------------------------
package yexp;
import java.util.List;
import java.util.ArrayList;
public class MyCall
public Papa getPapa()
Baby baby = new Baby();
baby.setName("mmmBaby");
List<Baby> babyList = new ArrayList<Baby>();
babyList.add(baby);
Papa papa = new Papa();
papa.setBabyList(babyList);
return papa;
4) Papa.java from client ---------------
aquilo#cat Papa.java
package z;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
* <p>Java class for papa complex type.
* <p>The following schema fragment specifies the expected content contained within this class.
* <pre>
* <complexType name="papa">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="babyList" type="{http://www.w3.org/2001/XMLSchema}anyType" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "papa", propOrder = {
"babyList"
public class Papa {
@XmlElement(nillable = true)
protected List<Object> babyList; //??????? PROBELM should be List<Baby> babyList
* Gets the value of the babyList property.
* <p>
* This accessor method returns a reference to the live list,
* not a snapshot. Therefore any modification you make to the
* returned list will be present inside the JAXB object.
* This is why there is not a <CODE>set</CODE> method for the babyList property.
* <p>
* For example, to add a new item, do as follows:
* <pre>
* getBabyList().add(newItem);
* </pre>
* <p>
* Objects of the following type(s) are allowed in the list
* {@link Object }
public List<Object> getBabyList() {
if (babyList == null) {
babyList = new ArrayList<Object>();
return this.babyList;
Edited by: jchen8996 on Apr 5, 2010 8:17 AMTry using Collection instead of list so:
Collection<Baby> babyList = new ArrayList<Baby>(); -
Hi,
We have an EJB project for CRM customer self service.
The requirement we have is to call a wsdl which will in turn invoke a PI proxy.
The wsdl file is from PI.
I am not sure how to instantiate the WSDL and the proxy classes.
What should be the URL, port, target namespace etc.
I was able to import the wsdl in the EJB DC and generate java bean skeleton and client for it.
However, I am not clear with the code to instantiate the classes.
Please suggest.
Thanks,
Veena.Hi ,
what 's your problem details ? I am not sure what you want to know?
Maybe you are looking for
-
My wife and I decided that we needed separate accounts for our two 4s phones. To do this, the data from her phone needed to be transferred out, then transferred back in under the different account. The pictures were transferred back in using Itunes
-
Animations doesn't work when publishing from PPTX (Powerpoint 2007)
I have Presenter 7.0.2 (build 7464), running over PowerPoint 2007, and all the animations based on activators are not controllable after publishded. What I need is the same behave of published flash contents as the powerpoint presentation permits: -
-
Help with Magnifying glass problem
Hi m not so good in Maths so stuck with modifying the code posted here http://www.webwasp.co.uk/tutorials/b11-magnify/tutorial.php I have been able to modify some of the code like magnifying glass should move only when mouse is pressed or so but real
-
How can I control updating in Oracle ADF
I have been using Oracle Forms for many years and am trying to learn Jdeveloper and Oracle ADF. In Oracle Forms, we base all of out blocks on views and control all updating in on-insert, on-update, and on-delete triggers. How can I control updating i
-
Authorization object for parameter transactions
Hi all, I'm trying to restrict transaction VL10h for shipping point,this transaction is a parameter transaction and is not controlled by an authorization object directly.when I run a trace , transaction Vl10x shows up. The authorization object that i