Workshop WebServices
We are looking into using WorkShop to product ansync web services for long running
operations.
The complex object that is going to be returned may have a maximum of 1000 records.
So think of it as a xml file with 1000 book title tags.
So if I build this object in a web service will workshop automatically persist
this to
the database to save space or will I have to.
If I have to what would be the better way to do this.
If I was doing this without WorkShop I would not create a "book title" object
instead I would
populate a "booktitle" table then when the user requested the results I would
stream the information back to the user.
If it was a small object I would not care but... The bigger the objects get the
longer it takes
to package them up and move them around no matter what type of pattern you use.
We are looking into using WorkShop to product ansync web services for long running
operations.
The complex object that is going to be returned may have a maximum of 1000 records.
So think of it as a xml file with 1000 book title tags.
So if I build this object in a web service will workshop automatically persist
this to
the database to save space or will I have to.
If I have to what would be the better way to do this.
If I was doing this without WorkShop I would not create a "book title" object
instead I would
populate a "booktitle" table then when the user requested the results I would
stream the information back to the user.
If it was a small object I would not care but... The bigger the objects get the
longer it takes
to package them up and move them around no matter what type of pattern you use.
Similar Messages
-
JSP calling WorkShop WebServices Proxy - Unable to do
I have created simple Workshop webservices. Tested in Workshop IDE. works fine.
Now Ihave created proxy jar , placed it under web-inf/lib folder. I have created
JSP which is calling this webservices.
But when i call this jsp, im getting following error
D:\bea7plat\weblogic700\samples\server\config\examples\examplesServer\.wlnotdelete\DefaultWebApp_DefaultWebApp_2429105\jsp_servlet\__soap.java:93:
cannot resolve symbol
probably occurred due to an error in /soap.jsp line 7:
proxy.makePayment("avc" ,"bb" , "ge" , 45.56);%>
Full compiler error(s):
D:\bea7plat\weblogic700\samples\server\config\examples\examplesServer\.wlnotdelete\DefaultWebApp_DefaultWebApp_2429105\jsp_servlet\__soap.java:93:
cannot resolve symbol
symbol : method makePayment (java.lang.String,java.lang.String,java.lang.String,double)
location: interface weblogic.jws.proxies.SubmitEFTBillSoap
proxy.makePayment("avc" ,"bb" , "ge" , 45.56); //[ /soap.jsp; Line:
7]
^
1 error
my jsp is simple
%@ page import="weblogic.jws.proxies.*" %>
<% SubmitEFTBill_Impl obj = new SubmitEFTBill_Impl(); %>
<%
SubmitEFTBillSoap proxy = obj.getSubmitEFTBillSoap() ;
proxy.makePayment("avc" ,"bb" , "ge" , 45.56);%>
Any pointers why im getting this error.
ThanksHi Ted,
The Java source is in the proxy jar, so you should open it (the proxy jar) with
WinZip, and see what's in the weblogic.jws.proxies.SubmitEFTBillSoap.java and
weblogic.jws.proxies.SubmitEFTBill_Impl.java files.
HTH,
Mike Wooten
"Ted" <[email protected]> wrote:
>
I have created simple Workshop webservices. Tested in Workshop IDE. works
fine.
Now Ihave created proxy jar , placed it under web-inf/lib folder. I have
created
JSP which is calling this webservices.
But when i call this jsp, im getting following error
D:\bea7plat\weblogic700\samples\server\config\examples\examplesServer\.wlnotdelete\DefaultWebApp_DefaultWebApp_2429105\jsp_servlet\__soap.java:93:
cannot resolve symbol
probably occurred due to an error in /soap.jsp line 7:
proxy.makePayment("avc" ,"bb" , "ge" , 45.56);%>
Full compiler error(s):
D:\bea7plat\weblogic700\samples\server\config\examples\examplesServer\.wlnotdelete\DefaultWebApp_DefaultWebApp_2429105\jsp_servlet\__soap.java:93:
cannot resolve symbol
symbol : method makePayment (java.lang.String,java.lang.String,java.lang.String,double)
location: interface weblogic.jws.proxies.SubmitEFTBillSoap
proxy.makePayment("avc" ,"bb" , "ge" , 45.56); //[ /soap.jsp;
Line:
7]
^
1 error
my jsp is simple
%@ page import="weblogic.jws.proxies.*" %>
<% SubmitEFTBill_Impl obj = new SubmitEFTBill_Impl(); %>
<%
SubmitEFTBillSoap proxy = obj.getSubmitEFTBillSoap() ;
proxy.makePayment("avc" ,"bb" , "ge" , 45.56);%>
Any pointers why im getting this error.
Thanks -
Unable to deploy workshop webservice (8.1SP2)
I have recently upgraded to WLS8.1SP2, created a workshop domain, deployed a workshop webservice application using ant and ran into the below error. Please help!
deploy:
[wldeploy] weblogic.Deployer -debug -remote -upload -noexit -name spider -sourc
e \opt\sfc\spider\local\spider.ear -targets -adminurl t3://127.0.0.1:7001 -user
admin -password ******** -deploy
[wldeploy] DeploymentData : Delete Files:false
[wldeploy] Timeout :3600000
[wldeploy] Targets:
[wldeploy] Files:
[wldeploy] null
[wldeploy] Initiated Task: [0] [Deployer:149026]Deploy application spider on cg
Server.
[wldeploy] Task 0 failed: [Deployer:149026]Deploy application spider on cgServe
r.
[wldeploy] Deployment failed on Server cgServer
[wldeploy] dumping ApplicationException message
[wldeploy] Exception:weblogic.management.ApplicationException: prepare failed f
or avsWebSvc
[wldeploy] Module: avsWebSvc Error: Could not load avsWebSvc: weblogi
c.management.DeploymentException: [HTTP:101283]ServletContext(id=1223009,name=av
sWebSvc,context-path=/avsWebSvc): jspServlet "weblogic.servlet.WlwJSPServlet" de
fined in weblogic.xml could not be loaded.
[wldeploy] java.lang.ClassNotFoundException: weblogic.servlet.WlwJSPServlet
[wldeploy] at weblogic.utils.classloaders.GenericClassLoader.findClass(Gene
ricClassLoader.java:198)
I double check the classpath and knex.jar is definitely on the classpath server startup script:
CLASSPATH=C:/opt/bea/weblogic81/common/lib/jms1.1.jar:C:/opt/bea/weblogic81/serv
er/lib/weblogic_knex_patch.jar:C:/opt/bea/weblogic81/common/lib/log4j.jar:C:/opt
/bea/weblogic81/server/lib/debugging.jar:C:/opt/bea/weblogic81/server/lib/knex.j
ar:C:/opt/bea/weblogic81/javelin/lib/javelin.jar:C:/opt/bea/weblogic81/server/li
b/wlw-lang.jar:C:/opt/bea/jdk141_05/lib/tools.jar;C:/opt/bea/weblogic81/server/l
ib/weblogic_sp.jar;C:/opt/bea/weblogic81/server/lib/weblogic.jar;C:/opt/bea/webl
ogic81/server/lib/ojdbc14.jar:C:/opt/bea/weblogic81/server/lib/ant/ant.jar:C:/op
t/bea/jdk141_05/jre/lib/rt.jar::C:/opt/bea/weblogic81/server/lib/webserviceclien
t.jar:C:/opt/bea/weblogic81/server/lib/webserviceclient+ssl.jar:C:/opt/bea/weblo
gic81/server/lib/xbean.jar:C:/opt/bea/weblogic81/server/lib/wlxbean.jar:C:/opt/b
ea/weblogic81/server/lib/xqrl.jar:C:/opt/bea/weblogic81/server/lib/netui/netui-c
ompiler.jar:C:/opt/bea/weblogic81/server/lib/wli.jar:C:/opt/bea/weblogic81/serve
r/lib/fop.jar:C:/opt/bea/weblogic81/integration/adapters/sample/lib/sample-eis.j
ar:Hi Ravi,
can you please indicate the NWDS and NWDI versions and JDK being used?
Regards,
Désiré -
Workshop : webservices : Dynamic Client
I am using WebLogic Workshop 8.1 to crate a test Web Service.
I have created a webservice with two methods to support
1. SOAP RPC call
2. SOAP document call
This is working fine with the test harness provided by workshop.
I have written two Dynamic clients to test this web service (one for soap RPC
type call and another for soap "document" type call).
The SOAP RPC type call dynamic client is working fine.
The SOAP "document" type call dynamic client is throwing the following exception
javax.xml.rpc.JAXRPCException: failed to invoke operation 'ReservationRQ' due
to an error in the soap layer (SAAJ); nested exception is: Message[ failed to
serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}]StackTrace[
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:539)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
at TestWSClientDoc.main(TestWSClientDoc.java:74)
Caused by: weblogic.xml.schema.binding.SerializationException: mapping lookup
failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
... 9 more
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:559)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
at TestWSClientDoc.main(TestWSClientDoc.java:74)
Failed to send doc.
I have attached a zip file conatining the following files with this.
TestWebService.jws - web service code
TestWSClientDoc.java - dynamic client to test "document" type call
TestWSClientRpc.java - dynamic client to test "rpc" type call
test.xml – test document.
Could you please let me know here am I doing wrong?
Thanks
Purna
[webservice.zip]Hi Mike,
Your code worked for me. I will go from here.
Thanks,
Purna
"Michael Wooten" <[email protected]> wrote:
>
>
>
Hi Purna,
I have attached the source for a DII client that I think may work for
you.
It contains comments that describe what I think is causing the problem
you are
having in WLW 8.1, because I was having the same problem in WLW 7.0 :-)
You'll need to have %WL_HOME%\server\lib\webservices.jar in the client's
CLASSPATH,
because that's where the ElementCodec (and DocumentCodec) is. Let me
know if it
works.
Regards,
Mike Wooten
"Purna" <[email protected]> wrote:
Hi Bruce,
The example you provided is working fine. In fact I had used your example
to write
the Dynamic client.
Background on my requirement:
I had created a web service out of my application, which has set ofenterprise
java beans. The web service is working fine with WLW test harness and
static client.
I want to write a Dynamic Cient for this web service. Inside this web
service
the methods are expecting a document object. I am getting the exceptions
for
the Dynamic Client.
Please find the attached zip file containg the wsdl files.
It would be great if you can provide a working document style web service
(*.jws
file - generated from WL workshop) and Dynamic Client code.
Thanks,
Purna
Bruce Stephens <[email protected]> wrote:
Hi,
I would suggest trying to narrow down the problem. I suspect that there
are server side issues. Try going back to this example and making
sure
it works OK.
http://newsgroups.bea.com/cgi-bin/dnewsweb/domdocdyn.zip?cmd=article&group=weblogic.developer.interest.webservices&item=4127&part=2&utag=&/domdocdyn.zip
Spin up WLW and compare the two WSDLs. I suspect there will be some
differences that could be causing your problem.
Could you tell us a bit about your goal?
Thanks,
Bruce
Purna wrote:
Hi Bruce,
I have removed the "rpc" style method and now I have only "document"style method,
but still I am getting the same exception with Dynamic Client.
Do you have any suggetions?.
Thanks,
Purna
Bruce Stephens <[email protected]> wrote:
Hello,
Take a look at "style" attribute:
http://edocs.bea.com/wls/docs81/webserv/wsp.html#1015120 in the
web-service element, it states the "style" attribute applies to
an
entire Web Service, all operations specified in a single <web-service>
element must be either RPC-oriented or documented-oriented; WebLogic
Server does not support mixing the two styles within the same Web
Service.
Hope this helps,
Bruce
purna wrote:
I am using WebLogic Workshop 8.1 to crate a test Web Service.
I have created a webservice with two methods to support
1. SOAP RPC call
2. SOAP document call
This is working fine with the test harness provided by workshop.
I have written two Dynamic clients to test this web service (one
for
soap RPC
type call and another for soap "document" type call).
The SOAP RPC type call dynamic client is working fine.
The SOAP "document" type call dynamic client is throwing the followingexception
javax.xml.rpc.JAXRPCException: failed to invoke operation 'ReservationRQ'due
to an error in the soap layer (SAAJ); nested exception is: Message[failed to
serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement
class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}]StackTrace[
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement
class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:539)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
at TestWSClientDoc.main(TestWSClientDoc.java:74)
Caused by: weblogic.xml.schema.binding.SerializationException:
mapping
lookup
failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:ReservationRQ}
at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
... 9 more
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:559)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:392)
at TestWSClientDoc.main(TestWSClientDoc.java:74)
Failed to send doc.
I have attached a zip file conatining the following files with
this.
TestWebService.jws - web service code
TestWSClientDoc.java - dynamic client to test "document" type
call
TestWSClientRpc.java - dynamic client to test "rpc" type call
test.xml – test document.
Could you please let me know here am I doing wrong?
Thanks
Purna
Name: webservice.zip
webservice.zip Type: Zip Compressed Data (application/x-zip-compressed)
Encoding: base64 -
Consuming Weblogic Workshop WebService
Hi,
I am getting an error running the generated client stubs for a weblogic workshop based document style webservice. (I don't have a problem with a rpc style webservice in the same configuration.)
The error is to do with extracting the return string/int and fromElement is reporting a classcast exception. Using tcp monitor I have seen the return message and it seems fins. There is no 'xsi:type' attribute on the return xml element.
Also I can't seem to access the xmlelement value, the return string/int in the debugger watch window. I have casted the element to a node and getValue on the node returns null.
Any help would be appreciated.
JamesHi,
Additional Information
I am able to access the weblogic workshop doc style webservice from VB.NET generated proxy without a problem.
Stack Trace
java.lang.ClassCastException: oracle.xml.parser.v2.XMLText
java.lang.Object oracle.jdeveloper.webservices.runtime.WrappedDocLiteralStub.fromElement(org.w3c.dom.Element, java.lang.Class)
WrappedDocLiteralStub.java:473
java.lang.String hello.HelloWorldStub.HelloStr(java.lang.String)
HelloWorldStub.java:97
James -
ServiceControlException exception in Weblogic Workshop webservice
Hi,
I have created WebService control file (*.jcx) from an appropriate wsdl file in Weblogic Workshop(jrockit81sp3_142_04). My interface declaration in control file looks like:
* @jc:location http-url="http://<host>:<port_number><service_address>"
* @jc:wsdl file="#InternalWebServiceWsdl"
* @common:xmlns namespace="urn:fais:InternalWebService.wsdl" prefix="tns"
* @common:xmlns namespace="http://www.iso20022.org/" prefix="iso20022"
* @common:xmlns namespace="http://schemas.xmlsoap.org/wsdl/mime/" prefix="mime"
* @common:xmlns namespace="http://schemas.xmlsoap.org/wsdl/http/" prefix="http"
* @common:xmlns namespace="http://schemas.xmlsoap.org/wsdl/soap12/" prefix="soap12"
* @common:xmlns namespace="http://schemas.xmlsoap.org/wsdl/soap/" prefix="wsdlsoap"
* @common:xmlns namespace="http://schemas.xmlsoap.org/soap/encoding/" prefix="soapenc"
* @common:xmlns namespace="http://www.w3.org/2001/XMLSchema" prefix="xs"
* @common:xmlns namespace="http://schemas.xmlsoap.org/wsdl/soap/" prefix="soap"
* @common:xmlns namespace="http://schemas.xmlsoap.org/wsdl/" prefix="wsdl"
* @common:xmlns namespace="urn:fais:FaisWSTypes.xsd" prefix="fais"
* @common:target-namespace namespace="urn:fais:InternalWebService.wsdl"
public interface InternalWebServiceControl extends com.bea.control.ControlExtension, com.bea.control.ServiceControl {
My method declaration in control file looks like:
* @jc:protocol form-post="false" form-get="false"
* @jc:parameter-xml include-java-types="java.lang.String java.util.Calendar"
* @jc:return-xml include-java-types="wsdl.faisInternalWebService.NAVStatistics"
public wsdl.faisInternalWebService.StatisticsNAVResponseDocument StatisticsNAV (java.lang.String ISIN, java.util.Calendar FromDt);
When invoking webservice through this control file I get an error message:
<14.03.2007 12:44:17 EET> <Warning> <WLW> <000000> <Id=internalFaisParser; Method=processes.com.omx.fais.controls.InternalWebServiceControl.StatisticsNAV(); Failure=com.bea.control.ServiceControlExcep
tion: SERVICE FAULT:
Code:com.bea.xml.marshal.XmlEncodingException
String:Unrecognized element StatisticsNAVResponse - expected StatisticsNAVResponse@urn:fais:InternalWebService.wsdl
Detail:
END SERVICE FAULT>
ERROR2
com.bea.control.ServiceControlException: SERVICE FAULT:
Code:com.bea.xml.marshal.XmlEncodingException
String:Unrecognized element StatisticsNAVResponse - expected StatisticsNAVResponse@urn:fais:InternalWebService.wsdl
Detail:
END SERVICE FAULT
at com.bea.wlw.runtime.core.control.ServiceControlImpl.invoke(Ljava.lang.reflect.Method;[Ljava.lang.Object;)Ljava.lang.Object;(ServiceControlImpl.jcs:1237)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(DispMethod.java:373)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Ljava.lang.Object;Ljava.lang.String;Lcom.bea.wlw.runtime.core.dispatcher.DispMethod;[Ljava.lang.Object;)Ljava.lang.Object;(Invocable.java:423)
What does it mean? How should I solve this problem?Vikram,
Can you check the startweblogic.cmd script and verify that the following
property -Dweblogic.jws.ProductionMode is set to true ?
Regards,
Raj Alagumalai
Backline Workshop Support
"Vikram" <[email protected]> wrote in message
news:3f6f071f$[email protected]..
>
Hi,
We have created a set of Web Services using Web Logic Workshop. They workfine
on the development server(Weblogic 7.0 SP4) when run from Workshop. Wepackaged
the Services into an EAR file and deployed them on the Production Server(Weblogic
7.0 SP4, Platform Domain) where the property WLS_PROD_MODE is set to True.When
we try to access a Web Service thru the URL, we are getting a Null Pointerexception.
>
>
I would highly appreciate if somebody can give us pointers on the problem.
Thanks
Vikram -
Workshop webservices deployment
Can a webservice written in Weblogic Workshop be deployed on websphere or any other
J2EE app server? Has anyone tried this?In the first release our focus has been deployment on WebLogic server and on
standardization efforts around the JWS file format itself, and have not
tested the work required to port to other application servers. We anticipate
that over time other application server vendors will support the .jws format
just as they have adopted J2EE.
-Carl
"Tedie West" <[email protected]> wrote in message
news:3c867946$[email protected]..
>
Thanks for the quick response. One followup, will the .ear have everything(including
things provided/created by workshop)needed by the webservice? Would anychanges
have to be made to the contents of the .ear? I guess my question is reallythis:
Could a devloper use Weblogic Workshop to build/test webservices and thendeploy
them on another J2EE 1.3 app server without going through a big process.Or would
it be as simple as deploying the .ear file?
Thanks!
Jim Weaver <[email protected]> wrote:
Workshop will build EAR files for the GA release. At that point a
developer
will be
able to port the EAR file to another server that supports J2EE 1.3.
Thanks
Jim Weaver
Developer Relations Engineer
BEA Systems, Inc.
Tedie West wrote:
Can a webservice written in Weblogic Workshop be deployed on websphereor any other
J2EE app server? Has anyone tried this?Content-Description: Card for Jim Weaver
begin:vcard
n:Weaver;Jim
x-mozilla-html:FALSE
org:BEA Systems Inc.
adr:;;.;;;;
version:2.1
email;internet:[email protected]
title:Developer Relations Engineer
fn:Jim Weaver
end:vcard -
Workshop WebService - Source file .jws not found
Hi,
I have developed WebService using BEA Weblogic Workshop 8.1. On my developement machine everything works perfectly. But when we build application (It is portal application with portal project - our corporate internet presentation and Webservice project with my WebService) using ant script exported from Workshop into ear and deploy it onto our testing servers WebService Doesn't work. When I try to call it I get this error message "Source file WebService.jws not found." When I add requested JWS file into its place, WebService starts to work as expected.
Application is deployed from exploded directory which is created by unpacking EAR, this is to simplify patching of application and server is running in production mode.
Any idea what is wrong?Hi,
thank you very much. We have changed name of directory with exploded enterprise application to appname.ear and added -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dweblogic.jws.ProductionMode=true to java commandline and it works for now, don't know which change helped, but It works so I don't care.
I tried these parameters before and it didn't work but I might have done some mistake so I was clueless.
Thanks,
Petr -
Looking for sample ANT files for building workshop webservice app outside the IDE
Hi,
I am currently planning to use Workshop for implementing a webservice application.
I am looking for any sample ANT files that would enable me to build and deploy
both the webservice EAR and the client JAR outside the IDE.
Thanks,
Bao NguyenHi Raj,
Yup, I did see that sample file. However, it only demontrate how to build an
EAR file. I am also looking for samples of how to generate the client JAR (using
proxy to gain access to the webservice) and also how to deploy the web service
EAR file to the server.
I tried to use the ANT tag "clientgen" referencing the generated EAR file. It
complainted of the missing WAR file. I checked the content of the EAR file and
found no WAR file generated.
I am also looking for a better way of accessing the webservice more generically
instead of going through the proxy which is quite coupled to a specific app server.
Please provide examples.
Regards,
Bao Nguyen
"Raj Alagumalai" <[email protected]> wrote:
Hello Bao,
Please refer to my post "Ant script for building EAR "dated August 21
2003.
I have attached a sample which does this.
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.workshop&item=1285&utag=
Thanks
Raj Alagumalai
WebLogic Workshop Support
"Bao Nguyen" <[email protected]> wrote in message
news:3f61477e$[email protected]..
Hi,
I am currently planning to use Workshop for implementing a webserviceapplication.
I am looking for any sample ANT files that would enable me to buildand
deploy
both the webservice EAR and the client JAR outside the IDE.
Thanks,
Bao Nguyen -
Trouble deploying Weblogic Workshop Webservice in Production Mode
Hi,
We have created a set of Web Services using Web Logic Workshop. They work fine
on the development server(Weblogic 7.0 SP4) when run from Workshop. We packaged
the Services into an EAR file and deployed them on the Production Server (Weblogic
7.0 SP4, Platform Domain) where the property WLS_PROD_MODE is set to True. When
we try to access a Web Service thru the URL, we are getting a Null Pointer exception.
I would highly appreciate if somebody can give us pointers on the problem.
Thanks
VikramVikram,
Can you check the startweblogic.cmd script and verify that the following
property -Dweblogic.jws.ProductionMode is set to true ?
Regards,
Raj Alagumalai
Backline Workshop Support
"Vikram" <[email protected]> wrote in message
news:3f6f071f$[email protected]..
>
Hi,
We have created a set of Web Services using Web Logic Workshop. They workfine
on the development server(Weblogic 7.0 SP4) when run from Workshop. Wepackaged
the Services into an EAR file and deployed them on the Production Server(Weblogic
7.0 SP4, Platform Domain) where the property WLS_PROD_MODE is set to True.When
we try to access a Web Service thru the URL, we are getting a Null Pointerexception.
>
>
I would highly appreciate if somebody can give us pointers on the problem.
Thanks
Vikram -
Cannot connect to Informix Server from workshop webservice tutorial
I am trying to modify the web service tutorial sample application to change the
database connection to point to the informix database server. After running application,
it displayed the following errror message:
weblogic.jws.control.ControlException: Unable to obtain connection to database[Connection
has already been created in this tx context for pool named cgPool. Illegal attempt
to create connection from another pool: ecomPool] .
Here ecomPool is a working pool which I am doing other development with it.
Please advice if someone has some idea.
Thanks."kevin" <[email protected]> wrote:
>
I am trying to modify the web service tutorial sample application to
change the
database connection to point to the informix database server. After
running application,
it displayed the following errror message:
weblogic.jws.control.ControlException: Unable to obtain connection to
database[Connection
has already been created in this tx context for pool named cgPool. Illegal
attempt
to create connection from another pool: ecomPool] .
Here ecomPool is a working pool which I am doing other development with
it.
Please advice if someone has some idea.
Thanks.You cannot have two non-XA enabled connection pools used by workshop. What you'll
need to do is set up ecomPool to be XA enabled, then when you point cgPool to
Informix (non-XA), it should run smoothly.
Be aware cgPool cannont be XA enabled, because the JMS traffic is over this pool
as well -
Creating a WebService with Workshop on NT and deploying to UNIX
Are there any problems with a webservice (created with Workshop on NT) being deployed(
as an ear file) on a WL 7.0 instance? Does the instance have to be a Workshop
type domain or not?Hello Ron,
The EAR file generated on a Win NT machine, can be deployed on a Workshop
enabled server running on a UNIX machine.
Please refer to the link provided by Anurag for steps on Workshop enabling a
WebLogic Domain.
http://e-docs/workshop/docs70/help/guide/howdoi/howWLW-enableExistingWLSDoma
in.html
For information on supported platform please refer to the following URL.
http://e-docs/platform/docs70/support/index.html
Thanks
Raj Alagumalai
WebLogic Workshop Support
"Anurag Pareek" <[email protected]> wrote in message
news:[email protected]..
Ron,
A Workshop webservice EAR file should only be deployed on a Workshopenabled
domain.
Please refer the Workshop docs for 'How to Workshop enable an existing
WebLogic Server domain', or 'How to create a new Workshop domain'.
Let me know if you have further questions.
Thanks,
Anurag
"Ron" <[email protected]> wrote in message
news:3e8d9480$[email protected]..
Are there any problems with a webservice (created with Workshop on NT)being deployed(
as an ear file) on a WL 7.0 instance? Does the instance have to be aWorkshop
type domain or not? -
Error when generating a Web Service from WSDL (Weblogic Workshop)
Hi,
I am using weblogic workshop 10 for implementing web services and its was working fine. But now when I try to generate a web service from WSDL its crashing with the following error;
Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
org.eclipse.core.runtime.CoreException: Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:107)
at com.bea.workshop.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:133)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
org.eclipse.core.runtime.CoreException[4]: com.bea.workshop.webservices.core.gen.WebServicesException:
at com.bea.workshop.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:154)
at com.bea.workshop.webservices.core.gen.GenerationScript.createJWS(GenerationScript.java:98)
at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws0(JwsFromWsdlBuilder.java:135)
at com.bea.workshop.webservices.core.gen.JwsFromWsdlBuilder.buildJws(JwsFromWsdlBuilder.java:98)
at com.bea.workshop.webservices.ui.wizards.jwsfromwsdl.GenerateJwsFromWsdlWizard$1.execute(GenerateJwsFromWsdlWizard.java:133)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:101)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1737)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: org.eclipse.core.runtime.CoreException: Could not find one or more classes: "org.apache.tools.ant.launch.AntMain". Please check the Ant classpath.
at org.eclipse.ant.core.AntRunner.problemLoadingClass(AntRunner.java:445)
at org.eclipse.ant.core.AntRunner.handleInvocationTargetException(AntRunner.java:417)
at org.eclipse.ant.core.AntRunner.run(AntRunner.java:362)
at com.bea.workshop.webservices.core.gen.GenerationScript.runAnt(GenerationScript.java:152)
... 8 more
I have checked my ANT_HOME and its pointing to the correct location bea\tools\eclipse32\eclipse\plugins\org.apache.ant_1.6.5 and the AntMain classs is present in this path: org.apache.tools.ant.launch.AntMain
If anyone has any idea on this please suggest a solution.
Thanks in advance
-AKJYes, I assume you are talking about ANT_HOME:
see this Screenshot which shows my current settings
[http://i43.tinypic.com/nbrec6.jpg|http://i43.tinypic.com/nbrec6.jpg]
Regards
-AKJ -
Soap binding in wsdl and weblogic workshop
Dear newsgroup,
I'm trying to develop a webservice with workshop 8.1. In my case, I already have
a "WSDL" file for the service I want to develop.
So I created a "Schema Project", imported the wsdl file in it (workshop automatically
compiled it !!) and generated a webservice from it. I then created a webservice
project and moved the generated "jws" file in the webservice project.
So far with no problem.
Now I opened the "jws" file and saw there is this error:
"ERROR: The binding for <Op name> does not declare one part"
"SUGGESTION: A document literal binding must have at most one part. Make sure
you have a WSDL that declares just one part for each message with a document literal
binding."
Indeed my wsdl has messages with more than one part. It looks like this:
<wsdl:message name="SubmitSMSIn">
<wsdl:part name="GNSHeaderHeader" element="fwk:GNSHeader">
</wsdl:part>
<wsdl:part name="GNSCredentialsHeader" element="fwk:GNSCredentials">
</wsdl:part>
<wsdl:part name="SubmitSMSRequestBody" element="sms:SubmitSMSRequest">
</wsdl:part>
</wsdl:message>
And corresponding binding looks like this:
<wsdl:binding name="smsBinding" type="smsPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"
/>
<wsdl:operation name="SubmitSMS">
<soap:operation style="document" soapAction="http://vodafone.net/ns/gns/sms/SubmitSMS">
</soap:operation>
<wsdl:input name="SubmitSMSInput">
<soap:body use="literal" parts="SubmitSMSRequestBody">
</soap:body>
<soap:header use="literal" message="SubmitSMSIn" part="GNSHeaderHeader"
wsdl:required="true">
</soap:header>
<soap:header use="literal" message="SubmitSMSIn" part="GNSCredentialsHeader"
wsdl:required="true">
</soap:header>
</wsdl:input>
<wsdl:output name="SubmitSMSOutput">
<soap:body use="literal" parts="SubmitSMSResponseBody">
</soap:body>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
MY QUESTION: Is this a workshop webservice limitation? I thought after reading
wsdl specification,(URL: http://www.w3.org/TR/wsdl.html#_soap-b, example 3), that
this should be possible.
What am I doing wrong.
Thanks for any help.
-- Asit BhattacharyaHi Asit,
Personally, I find dealing with the WSDL/SOAP language a humbling
experience and welcome the day that their syntax is completely buried
with the use of tools; to that end, I would recommend that you use the
WS-I test tools to validate/confirm all of the Rxxx issues.
Regards,
Bruce
Asit Bhattacharya wrote:
>
Hi Bruce,
Yes, you are right. "R2210" indeed does say that. Interestingly, it starts like
this:
"If a document-literal binding in a DESCRIPTION does not specify the parts attribute
on a soapbind:body element, the corresponding abstract wsdl:message MUST define
zero or one wsdl:parts."
Please NOTE the "if" part of the recommendation. As I understand, it is saying
when "parts" attribute is not specified in "soapbind:body" element then corresponding
"wsdl:message" is required to define zero or one "wsdl:parts".
In my original wsdl file example, I do have "parts" attribute specified for the
"soapbind:body" element. To me that that should be valid. What do you say.
Sincerely,
Asit Bhattacharya.
Bruce Stephens <[email protected]> wrote:
Hi Asit,
R2210 says: ...wsdl:message MUST define zero or one wsdl:parts.
I might suggest that you try your WSDL with the WS-I test tools. They
have a mode to consume and analyze WSDL that will give you a detailed
response correlated with the basic profile.
Regards,
Bruce
Asit Bhattacharya wrote:
Hi Bruce,
Thanks for your reply,
WS-I Basic Profile "R2201" says the following:
"A document-literal binding in a DESCRIPTION MUST, in each of its soapbind:body
element(s), have at most one part listed in the parts attribute, ifthe parts
attribute is specified."
It does not restrict a meesage (that is used in doc/lit soap binding)to have
multiple parts. If you look in my example wsdl (specially the soap:bindingportion),
you'll see I'm only using one part for soap:body binding.
Could you please explain why do you think that the SUGGESTION is valid?
Thanks for your help.
Regards.
Asit Bhattacharya.
Bruce Stephens <[email protected]> wrote:
Hello,
The suggestion is valid. You might want to reference the extensive
work
on this issue by the WS-I folks [1], see R2201 and following.
Regards,
Bruce
[1]
http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html
Asit Bhattacharya wrote:
Dear newsgroup,
I'm trying to develop a webservice with workshop 8.1. In my case,
I
already have
a "WSDL" file for the service I want to develop.
So I created a "Schema Project", imported the wsdl file in it (workshopautomatically
compiled it !!) and generated a webservice from it. I then createda webservice
project and moved the generated "jws" file in the webservice project.
So far with no problem.
Now I opened the "jws" file and saw there is this error:
"ERROR: The binding for <Op name> does not declare one part"
"SUGGESTION: A document literal binding must have at most one part.Make sure
you have a WSDL that declares just one part for each message with
a
document literal
binding."
Indeed my wsdl has messages with more than one part. It looks likethis:
<wsdl:message name="SubmitSMSIn">
<wsdl:part name="GNSHeaderHeader" element="fwk:GNSHeader">
</wsdl:part>
<wsdl:part name="GNSCredentialsHeader" element="fwk:GNSCredentials">
</wsdl:part>
<wsdl:part name="SubmitSMSRequestBody" element="sms:SubmitSMSRequest">
</wsdl:part>
</wsdl:message>
And corresponding binding looks like this:
<wsdl:binding name="smsBinding" type="smsPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"
/>
<wsdl:operation name="SubmitSMS">
<soap:operation style="document" soapAction="http://vodafone.net/ns/gns/sms/SubmitSMS">
</soap:operation>
<wsdl:input name="SubmitSMSInput">
<soap:body use="literal" parts="SubmitSMSRequestBody">
</soap:body>
<soap:header use="literal" message="SubmitSMSIn"part="GNSHeaderHeader"
wsdl:required="true">
</soap:header>
<soap:header use="literal" message="SubmitSMSIn"part="GNSCredentialsHeader"
wsdl:required="true">
</soap:header>
</wsdl:input>
<wsdl:output name="SubmitSMSOutput">
<soap:body use="literal" parts="SubmitSMSResponseBody">
</soap:body>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
MY QUESTION: Is this a workshop webservice limitation? I thought
after
reading
wsdl specification,(URL: http://www.w3.org/TR/wsdl.html#_soap-b,
example
3), that
this should be possible.
What am I doing wrong.
Thanks for any help.
-- Asit Bhattacharya -
Invoke web service in workshop 8.1
Hello,
How can I invoke a web service from Wrokshop 8.1?
Is there any simple example?Hi
If you want to invoke a external webservice from workshop where workshop is the client you can use service control to do so.
You will find samples at BEA_HOME\weblogic81\samples\workshop\SamplesApp\WebServices\service
Also please check the documentation at http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/controls/service/navServiceControl.html
You can also use service controls to call workshop webservices/external webservices from an workshop webservice.
Thanks
Vimala
Maybe you are looking for
-
Third party plug in problem?
I am using IMac 10.6 and have just upgraded from CS4 to CS5. I have been using Nik Complete Collection plug-ins. Where as in CS4 I could select the Nik plug-in under the Photo Shop Filter tool bar, in CS5 it is not showing. Also they do not show up u
-
why has my landscape orientation feature quit working. Display does not rotate when device is rotated.
-
Drag and drop to create a custom step
Hi, I have a custom insertion palette in my custom user-interface. I want to allow the user to drag the step from the custom insertion palette into the sequence designer, like the original insertion palette. The custom insertion palette is in WPF. Th
-
Duplex printing with Reader XI?
Adobe Reader XI (11.0.07) does not recognize duplex printing for my Brother HL-5370DW printer. This occurs in OS X 10.6.8 and Mavericks (on different computers). All other software, including Acrobat Reader 9 (and earlier versions of Reader) and Ac
-
Desperately Need Help - Cannot Update or Install Software
have an iMac Intel Core 2 Duo running on Mac OS X 10.6.4 I can't update existing software or install new software. Every time I try the installation either does not occur (e.g. for the Mac OS X software or iTunes where the install occurs with a re-