[JBoss-user] [JBossWS] - Re: WSDOCServiceStepByStep help

2005-12-22 Thread ibsscott
I decided to wait until the next generation of web services is released.  The 
only reliable way I could use was to pass it as a String and then Marshal it 
into xml.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914003#3914003

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914003


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: WSDOCServiceStepByStep help

2005-07-29 Thread ibsscott
I'm not sure why. The request is received on the server succesfully. I just 
can't unwrap it on the client side.  My client looks like this:

  URL url = new 
URL("http://localhost:8080/fifalmonk/fifalmonk/WebServiceSession?wsdl";);

  QName qname = new 
QName("http://com/fifalmonk/webservice/WebServiceSession.wsdl";,
"WebServiceSession");

ServiceFactory factory = ServiceFactory.newInstance();
Serviceservice = factory.createService( url, qname );
WebServiceSessionEndpoint endpoint= (WebServiceSessionEndpoint) 
service.getPort(WebServiceSessionEndpoint.class);

... build Transaction bean here

WebServiceSessionEndpoint_process_RequestStruct request = new 
WebServiceSessionEndpoint_process_RequestStruct(transactionDocument);
WebServiceSessionEndpoint_process_RequestStruct request = new 
WebServiceSessionEndpoint_process_RequestStruct(transactionDocument);
   WebServiceSessionEndpoint_process_ResponseStruct response = 
(WebServiceSessionEndpoint_process_ResponseStruct)endpoint.process(request);

I also tried this and got the same result.
Object o  = endpoint.process(request);

Something in here is causing the problem:
at 
com.sun.xml.rpc.client.dii.CallInvokerImpl._postSendingHook(CallInvokerImpl.java:305)

I'm using the -gen:server artifacts to wrap and unwrap the request and response 
because when I tried to regenerate the client classes with wscompile based on 
the server's wsdl, it tried to create a constructor with too many parameters. 
My original beans have a lot of fields. The classes it created would not 
compile.  I shouldn't need to recreate the classes anyways since they were used 
to build the wsdl in the first place and I have them already.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887322#3887322

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887322


---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: WSDOCServiceStepByStep help

2005-07-28 Thread ibsscott
I'm thinking the problem is that my client does not have access to the 
jaxrpc-mapping.xml file and that I will need a J2EE client to help out. Any 
thoughts?  Is there any other way to do this?  Does a J2ee client limit me to 
only talking to java clients? How would a non-java app send me an xml doc?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887172#3887172

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887172


---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - WSDOCServiceStepByStep help

2005-07-28 Thread ibsscott
I have followed the example very carefully.  I am able to receive the object on 
the server but when I send it back to the client, the client objects to it:

This is my SEI:

public WebServiceSessionEndpoint_process_ResponseStruct 
process(WebServiceSessionEndpoint_process_RequestStruct request) throws 
RemoteException;

This is how I call the webservice:

WebServiceSessionEndpoint_process_ResponseStruct response = 
(WebServiceSessionEndpoint_process_ResponseStruct)endpoint.process(new 
WebServiceSessionEndpoint_process_RequestStruct(transactionDocument));

This is how I return the response:
WebServiceSessionEndpoint_process_ResponseStruct response = new 
WebServiceSessionEndpoint_process_ResponseStruct(webDocument);

Here is the error:

java.lang.ClassCastException: org.apache.axis.Message

at 
com.sun.xml.rpc.client.dii.CallInvokerImpl._postSendingHook(CallInvokerImpl.java:305)

at 
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:324)

at 
com.sun.xml.rpc.client.dii.CallInvokerImpl.doInvoke(CallInvokerImpl.java:103)

at com.sun.xml.rpc.client.dii.BasicCall.invoke(BasicCall.java:480)

at 
com.sun.xml.rpc.client.dii.CallInvocationHandler.doCall(CallInvocationHandler.java:121)

at 
com.sun.xml.rpc.client.dii.CallInvocationHandler.invoke(CallInvocationHandler.java:85)

at $Proxy0.process(Unknown Source)

at 
com.fifalmonk.client.WsClient.testWebServiceAccess2(WsClient.java:267)

at com.fifalmonk.client.WsClient.main(WsClient.java:62)

Process exited with exit code 0.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887147#3887147

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887147


---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Web Services with XML document or attachment

2005-07-28 Thread ibsscott
And one more thing...  don't stop to check for the "not synchronized" problem 
that is stated in the example.  I didn't get it which made me think I had done 
something wrong.  I got a different error that I can't recall right now.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887129#3887129

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887129


---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Web Services with XML document or attachment

2005-07-28 Thread ibsscott
I just followed WSDOCServiceStepByStep.   Finally the server side is working.  
I am getting java.lang.ClassCastException: org.apache.axis.Message back on the 
client side, but it could be that I have not populated all of the fields of the 
bean.

The trick is to override the SEI response and request objects but there is no 
need to build a separate SEI because then you would have to update 
webservices.xml with the new implementation.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887123#3887123

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887123


---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Re: Web Services with XML document or attachment

2005-07-28 Thread ibsscott
I don't have a valid reason other than I was concerned about how much text the 
String could hold.  How large a document can I receive?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887100#3887100

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887100


---
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBossWS] - Web Services with XML document or attachment

2005-07-28 Thread ibsscott
I have read through every Wiki there is about Web Services but cannot find a 
solution that works.  I am trying to pass an XML document to my web service. I 
can do it if the service is expecting a simple String.  I am trying to marshal 
an Object into an object the web service supports.  I would like to pass an 
org.w3c.dom.Element, or javax.xml.transform.Source, or 
javax.activation.DataHandler, or anything but a String.  For the Element type, 
I tried to use the document literal model.  WsCompile ended up creating a new 
Element class and made it part of my package such as mypackage.Element instead 
of letting me use org.w3c.dom.Element.  It converted my SEI data types to the 
newly generated myPackage.Element class. I thought maybe the generated classes 
would act as a wrapper for org.w3c.dom.Element but I saw no reference to that 
and could not figure it out.  I tried building the wsdl by hand matching the 
example online, but I had no success trying to get the web service to accept 
org.w3c.dom.Element.  I think it didn't like xsd:anyType.

So I gave up on that and thought I would try attachments instead. I tried 
making my SEI use javax.xml.transform.Source as parameters since the 
documentation seems to say this is a valid web service type.  This was a 
nightmare.  I couldn't pass it a SAXSource or a DOMSource as they are not 
supported and finally had to settle for a StreamSource.   That gave me:

14:43:17,484 ERROR [RPCInvocation] java.lang.ClassCastException: org.jboss.axis.
message.SOAPBodyElementAxisImpl
java.lang.ClassCastException: org.jboss.axis.message.SOAPBodyElementAxisImpl
at org.jboss.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(J
AFDataHandlerDeserializer.java:121)
at org.jboss.axis.encoding.ser.SourceDataHandlerDeserializer.startElemen
t(SourceDataHandlerDeserializer.java:82)
at org.jboss.axis.encoding.DeserializationContextImpl.startElement(Deser
ializationContextImpl.java:1182)
etc..

Then I decided to give the DataHandler a try.  I downloaded the example from 
http://wiki.jboss.org:80/wiki/attach?page=JBossWSAttachStepByStep%2Fwsattachment.zip
 . It always seems I am missing a piece somewhere and in this case the 
jaxrpc-mapping.xml file was not included.  Once again, I built my SEI, and ran 
wscompile to get my jaxrpc-mapping.xml and my wsdl.  On startup, I receive this 
message:

...
01:33:33,265 WARN  [JavaWsdlMapping] Cannot find jaxrpc-mapping for type: {http:
//java.sun.com/jax-rpc-ri/internal}datahandler
01:33:33,356 WARN  [TypeMappingDescription] Class not found: javax.activation.da
tahandler
01:33:33,366 INFO  [AxisService] WSDD published to: 
C:\jboss-4.0.2\server\default..

Not sure if it means anything that datahandler is lower case... My 
jaxrpc-mapping.xml is in my META-INF directory which I know is correct since I 
struggled with this for a while.  When I execute a client against this 
deployment, I get:

on the Server:
---
01:55:09,990 ERROR [RPCInvocation] org.xml.sax.SAXException: Deserializing param
eter 'DataHandler_1':  could not find deserializer for type {http://java.sun.com
/jax-rpc-ri/internal}datahandler
org.xml.sax.SAXException: Deserializing parameter 'DataHandler_1':  could not fi
nd deserializer for type {http://java.sun.com/jax-rpc-ri/internal}datahandler
at org.jboss.axis.message.RPCHandler.onStartChild(RPCHandler.java:326)
at org.jboss.axis.encoding.DeserializationContextImpl.startElement(Deser
ializationContextImpl.java:1168)
at org.jboss.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.jav
a:244)

On the Client:
-
java.io.IOException: "text/xml" DataContentHandler requires String object, was 
given object of type class javax.xml.transform.stream.StreamSource

at com.sun.mail.handlers.text_plain.writeTo(text_plain.java:103)

at 
javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:839)

at javax.activation.DataHandler.writeTo(DataHandler.java:295)

at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1147)

I am passing a StreamSource to the DataHandler with MIME type text/xml

  DataHandler dataHandler = new DataHandler(source, "text/xml");
  dataHandler = endpoint.myService(dataHandler);

I get the "cannot find deserializer" message quite often and I can't take it 
any more.  I need help.  I haven't slept in days trying to get this to work.  
What am I missing???

Latest wsdl



  

    
    

8 matches