ant task to create jax-rpc xml types from schema - weblogic.developer.interest.webservices.general(Archived)

I need to create xml-rpc types from given xml schema files. Which ant task should I be using to do this? It will be great if you can also share an example on using this ant task.

Related

is there any util or ant build to generate xmlbeans from xml

hi all
is there any utility tools or ant build process that can generate xmlbeans from xml schema? thanks.

using xsb files with xmlbeans ant task

Hi all
I have got an xsd which references other schemas: for these other schemas I have only the xsbs. The xmlbeans ant task refuse to load the xsd I'm giving in because cannot found the other schemas. I'd like to simply import the existing xsb so that the ant task can use them: does anyone know how to do it?
Thank you in advance for any help
cdr

Doc oriented using XML Beans as serializer ?

I have a document centric / oriented web service up and running with WL 8.1, is
it possible to use XMLBeans as the received/return xml binding classes ?
Currently I am using the default classes that the AutoType step creates to represent
the types defined in my XML Schema.
I have found that the Autotype java classes lack any schema validation.
Hi Pete,
We are working toward that goal with flank speed. I might suggest
opening a case with support on this issue as an enhancement request,
because customer input carries great influence in the product direction.
Thanks,
Bruce
Pete wrote:
>
I have a document centric / oriented web service up and running with WL 8.1, is
it possible to use XMLBeans as the received/return xml binding classes ?
Currently I am using the default classes that the AutoType step creates to represent
the types defined in my XML Schema.
I have found that the Autotype java classes lack any schema validation.

Generate Service Control for WSDL: NullPointerException

Steps to demonstrate the problem: in Platform Workshop (8.1.4) in Integration mode, create a Tutorial Process Application, then for RequestQuote.jpd, Generate WSDL file, then for that WSDL, Generate Service Control.
<pre>ERROR: requestquote/RequestQuoteContract.wsdl Line 0, Col 0: java.lang.NullPointerException
</pre>
The WSDL is valid (Axis WSDL2Java and Eclipse-Webtools are both okay with it, assuming I delete some cw and http namespaces they don't understand).
The problem is when the XSD is too deeply nested giving XML like /one/two/three, whereas /one/two is okay for WLI. This is valid XSD, but apparently too deep for WLI to understand.
Any help debugging this more or working around it would be appreciated. Is there a way to run this process from the command line, so I might debug this more on my own? I'd like to give the stackTrace for the NPE, but WLI Workshop doesn't show that.
Thanks,
Mike 
There's a path from bea to resolve this.. contact BEA..i got similar error when tried to create a service control from a wsdl 
I'm also having this problem big time. I can't generate a single ws-control from a wsdl anymore.
Can somebody please tell me how to resolve this?
Kristof Taveirne 
Hi guys,
I had the same problem and what I had to do was import the Schema project that holds all schemas included in the WSDL that I was trying to generate a control from. In my case I had the Schema project because I was the one that developed the WebService too, in your case it's possible that you have to create an Schema project and somehow extract the schemas from de WSDL and create .xsd files to put in the project.
After doing this you will see the popup window (when you try to generate a service control from the WSDL file) asking if you want to use the XMLBeans generated from the xsd files in your Schema project otherwise it will generate inner classes based in the WSDL's schemas, you must choose YES (use the existing XMLBeans) and that should be it for creating a Service Control based on a WSDL file.
Hope this helps in most cases.
Regards,
Israel Williams
Software Architect
JWM Solutions
israel.williams#jwmsolutions.com 
Hi guys,
I had the same problem and what I had to do was import the Schema project that holds all schemas included in the WSDL that I was trying to generate a control from. In my case I had the Schema project because I was the one that developed the WebService too, in your case it's possible that you have to create an Schema project and somehow extract the schemas from de WSDL and create .xsd files to put in the project.
After doing this you will see the popup window (when you try to generate a service control from the WSDL file) asking if you want to use the XMLBeans generated from the xsd files in your Schema project otherwise it will generate inner classes based in the WSDL's schemas, you must choose YES (use the existing XMLBeans) and that should be it for creating a Service Control based on a WSDL file.
Hope this helps in most cases.
Regards,
Israel Williams
Software Architect
JWM Solutions
israel.williams#jwmsolutions.com 
Hi guys,
I had the same problem and what I had to do was import the Schema project that holds all schemas included in the WSDL that I was trying to generate a control from. In my case I had the Schema project because I was the one that developed the WebService too, in your case it's possible that you have to create an Schema project and somehow extract the schemas from de WSDL and create .xsd files to put in the project.
After doing this you will see the popup window (when you try to generate a service control from the WSDL file) asking if you want to use the XMLBeans generated from the xsd files in your Schema project otherwise it will generate inner classes based in the WSDL's schemas, you must choose YES (use the existing XMLBeans) and that should be it for creating a Service Control based on a WSDL file.
Hope this helps in most cases.
Regards,
Israel Williams
Software Architect
JWM Solutions
israel.williams#jwmsolutions.com 
Hi guys,
I had the same problem and what I had to do was import the Schema project that holds all schemas included in the WSDL that I was trying to generate a control from. In my case I had the Schema project because I was the one that developed the WebService too, in your case it's possible that you have to create an Schema project and somehow extract the schemas from de WSDL and create .xsd files to put in the project.
After doing this you will see the popup window (when you try to generate a service control from the WSDL file) asking if you want to use the XMLBeans generated from the xsd files in your Schema project otherwise it will generate inner classes based in the WSDL's schemas, you must choose YES (use the existing XMLBeans) and that should be it for creating a Service Control based on a WSDL file.
Hope this helps in most cases.
Regards,
Israel Williams
Software Architect
JWM Solutions
israel.williams#jwmsolutions.com 
Hi guys,
I had the same problem and what I had to do was import the Schema project that holds all schemas included in the WSDL that I was trying to generate a control from. In my case I had the Schema project because I was the one that developed the WebService too, in your case it's possible that you have to create an Schema project and somehow extract the schemas from de WSDL and create .xsd files to put in the project.
After doing this you will see the popup window (when you try to generate a service control from the WSDL file) asking if you want to use the XMLBeans generated from the xsd files in your Schema project otherwise it will generate inner classes based in the WSDL's schemas, you must choose YES (use the existing XMLBeans) and that should be it for creating a Service Control based on a WSDL file.
Hope this helps in most cases.
Regards,
Israel Williams
Software Architect
JWM Solutions
israel.williams#jwmsolutions.com 
Can you post the patch number for this? That would help a lot! Thanks!
-Dave

JAX-RPC webservice in Workshop using maven

Hi,
I want to create a maven project which contains a webservice of type jax-rpc.
To build the webservice using maven and generate the necesarry artifacts like
weblogic-webservices.axml and other xml files..is there a maven plugin available?or would I need to use ant from maven.
I cannot find any plugin for this. I did find on sun website a plugin for jax-ws but not for jax-rpc..
Any inputs would be of help..
Thanks

Categories

Resources