How to have the WS-Transfer in Metro ?

View: New views
5 Messages — Rating Filter:   Alert me  

How to have the WS-Transfer in Metro ?

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi , I'm programming a Web Service PrinterService in metro , and I have to take the WSDL file wrote by Microsoft and I have generated the code Java with success  .
Now I got a problem that I don't know how to have the functionality WS-Transfer ? I saw in the Doc , the Metro has WS-Transfer , but I don't find any more else , for example how to active it in netbeans (because I'm using netbeans) .I should modify the file WSDL to add that or I should do some configuration in netbenas ?So dose sommeone know about that please ?

Thanks a lot
[Message sent by forum member 'xyz911' (xyz911)]

http://forums.java.net/jive/thread.jspa?messageID=354856

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How to have the WS-Transfer in Metro ?

by Harold Carr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Metro uses a combination of WS-Transfer and MEX to get WSDL from WCF-based
services (since that is the way WCF does it).  But Metro does not surface
WS-Transfer as something that can be used by the end user.

Maybe someone (Jiandong? Fabian?) closer to our WS-Transfer code can say whether
there is a way to take advantage of it?

Regards,
H

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How to have the WS-Transfer in Metro ?

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Check the
com.sun.xml.ws.mex.client.Mex.MetadataClient. You can use method
retrieveMetadata(@NotNull final String address) is what you can use to
make the mex call and get response.


It was not designed for external use. So you have to use the JAXB classes
in mex.client.schema to parse the response.

Thanks!

Jiandong
[Message sent by forum member 'jdg6688' (jdg6688)]

http://forums.java.net/jive/thread.jspa?messageID=354967

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How to have the WS-Transfer in Metro ?

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi , What I need is to make the printer server knows how to answer the WS-Transfer/Get sent by the client , So I have to use JAXB class for retrieving the request and sending the response manually in the code Java ? So I cant modify the WSDL for having it ?
[Message sent by forum member 'xyz911' (xyz911)]

http://forums.java.net/jive/thread.jspa?messageID=355078

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: How to have the WS-Transfer in Metro ?

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have found that Handler can resolve the problem I have . Using handlerMessage , I can receive the request Get perfectly , but I don't know how to answer this request . After have seen the JAX-WS specification , I found that I have to indicate in the program that there is the message exchange pattern (MEP) . But how to do that in the code java ? I haven't found the solution in the Doc .  If you want to see the doc , here's the link :
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_JCP-Site/en_US/-/USD/ViewFilteredProducts-SimpleBundleDownload
and then go to the section 9
[Message sent by forum member 'xyz911' (xyz911)]

http://forums.java.net/jive/thread.jspa?messageID=356275

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...