Miles to go …

April 30, 2007

Ask the WSIT/Project Tango Experts

Filed under: webservices — arungupta @ 8:19 am

As mentioned earlier, Ask the WSIT Experts (Web Services Interoperability Technologies, aka Project Tango) is now live!

Please start shooting your questions and we are ready.

Technorati: wsit tango webservices glassfish

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • StumbleUpon
  • Technorati
  • Twitter
  • Slashdot
Related posts:
  1. Ask The Tango Experts
  2. Project Tango: An Overview – New Article
  3. JavaOne 2006 – Project Tango Keynote Demo
  4. Project Tango @ SDN Channel
  5. Project Tango @ Java One 2006 – Part 2

25 Comments »

  1. Guys,
    I wonder if you could help me out with this. I am trying to integrate MS WCF service with Jax-WS client. On Java side I use JDK 6.0. I generated all the webservice artifacts for my Java client and I tested it successfully with my WCF service that implements BasicHttpBinding.
    Then I wanted to use WCF with WSHttpBinding. I regenerated Java webservice artifacts but the Java client was unable to call the WCF service any more. After doing some digging I found out that Java client does not send To and Action headers to the WCF service and therefore the latter drops the call. To be more specific, WCF reported the following error:
    The message with To ” cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher. Check that the sender and receiver’s EndpointAddresses agree
    The problem seems to be related to WCF’s using WS-Addressing policy.
    So my question is – what is the right (or easiest) way to handle this problem?
    Thanks,
    Dmitriy

    Comment by Dmitriy — May 11, 2007 @ 2:02 pm

  2. Hi Dmitriy,
    Please follow the instructions specified at:
    http://blogs.sun.com/arungupta/entry/wcf_interop_workaround_for_incorrect
    Basically you need to specify @WebMethod/action on each operation.

    Comment by Arun — May 15, 2007 @ 8:49 pm

  3. I used WCF with NetBeans 5.5.1. and it works fine. but I had some objects which is JAXBElement<T>. to avoid using this I used wsimport util and had an extra file xxxx.xml.
    what I need if there is any way to use this util without installing glassfish? and should I install classfish to generate proxy classes?
    Thanks
    Khalid Jayoussi

    Comment by Khalid Jayoussi — July 22, 2007 @ 12:36 am

  4. Khalid, JAX-WS is part of Metro – the Web services stack in GlassFish. Even though that is the recommended way to obtain JAX-WS, you implementation is also can also download stand-alone bundle at http://jax-ws.dev.java.net. This has no dependency on GlassFish and can be installed on Tomcat as well.

    Comment by Arun Gupta — July 22, 2007 @ 5:30 am

  5. well, when I generated the proxy classes most of DataContracts are binded through JAXBElement<T>. is there any tutorial to use these binding. I dont prefer to use internal or external custumization binding.
    Thanks
    Khalid Jayoussi

    Comment by Khalid Jayoussi — July 22, 2007 @ 11:42 pm

  6. well, when I generated the proxy classes most of DataContracts are binded through JAXBElement<T>. is there any tutorial to use these binding. I dont prefer to use internal or external custumization binding.
    Thanks
    Khalid Jayoussi

    Comment by Khalid Jayoussi — July 23, 2007 @ 4:44 am

  7. Khalid, http://weblogs.java.net/blog/kohsuke/archive/2006/03/why_does_jaxb_p.html provides more details on the usage of JAXBElement and why it is generated.

    Comment by Arun Gupta — July 23, 2007 @ 6:11 am

  8. I need to consume my WCF service using Eclipse. but I dont know how to start.
    is there any tutorial shows how to consume a service using eclipse.
    Thanks
    Khalid Jayoussi

    Comment by Khalid Jayoussi — July 25, 2007 @ 2:56 am

  9. I need to consume my WCF service using Eclipse. but I dont know how to start.
    is there any tutorial shows how to consume a service using eclipse.
    Thanks
    Khalid Jayoussi

    Comment by Khalid Jayoussi — July 25, 2007 @ 3:00 am

  10. Khalid, AIU Eclipse allows to invoke a Web service endpoint using Axis runtime only. I’m not sure how much Axis has been tested for interop with WCF. And moroever, as with any Web services stack, you can develop/deploy a variety of services in WCF as well. In a previous blog I talked about how a JAX-WS compliant endpoint can be deployed. But only NetBeans allows to invoke such an endpoint. And since Metro, the Web services stack in GlassFish, has been extensively tested with WCF I recommend to use NetBeans to invoke such an endpoint. Please post if you find out the steps with Eclipse.

    Comment by Arun Gupta — July 25, 2007 @ 6:01 am

  11. how can I install and use AXIS runtime.
    Thanks
    Khalid Jayoussi

    Comment by Khalid Jayoussi — July 25, 2007 @ 7:26 am

  12. All the information should be available on: http://ws.apache.org/axis/. However if you are interested, then I published two blog entries:

    • Metro client invoking WCF endpoint and vice versa
    • this time a reliable endpoint

    Comment by Arun Gupta — July 25, 2007 @ 7:44 am

  13. Hi,
    I have 2 WCF services. let us call them Service1 and Service2. In each service there is the Same data contract (DataContract1).

    now in service1 there is an operation contract
    MyOperation(DataContract1 data).

    then I get the proxy classes in netbeans5.5.1 for both services, I need the returned datacontract1 from service2 to be passes to MyOperation. but it gives me incompatable types. how can I resolve this problem. is there any way to share these data between the 2 services. in other words is there any way to generay 1 datacontract for both service when we generate the proxy classes.

    Comment by Khalid Jayoussi — August 14, 2007 @ 8:29 am

  14. any one can help please?

    Comment by Khalid Jayoussi — August 17, 2007 @ 11:08 pm

  15. Khalid, If you can share your exact WCF code then I’ll work on a solution for you.

    Comment by Arun Gupta — August 19, 2007 @ 3:40 pm

  16. can I send you the whole java project.
    if yes I will send it via email ok?

    Comment by Khalid Jayoussi — August 20, 2007 @ 10:00 am

  17. I can create the Java client, I need to know the WCF code.

    Comment by Arun Gupta — August 20, 2007 @ 12:17 pm

  18. you can find the code here
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2010823&SiteID=1

    Thanks
    Khalid Jayoussi

    Comment by khalid jayoussi — August 20, 2007 @ 11:26 pm

  19. Khalid,

    Just curious, why do you duplicate the DataContract in both the services ? Can you not create a separate class for DataContract and then use it in both the ServiceContracts ?

    Comment by Arun Gupta — August 21, 2007 @ 2:16 pm

  20. Hello Arun. the problem is that each service
    will work seperatly. but the two services can work together. in other world, if you add one service it will work fine alone. and if you add the other service it will work fine two.

    these service i will redistrubute it. and my customers will consume these two services.
    thats why I cant create separate class. because the customer will be responsible to generate theses classes not me, nad i need to solve this issue for them.

    Comment by Khalid Jayoussi — August 21, 2007 @ 9:11 pm

  21. My java client was working well with .Net WCF Services using basicHttpBinding but now when switched to wsHttpBinding it fails on the server side i get the following exception :
    Exception Type: System.ServiceModel.ActionMismatchAddressingException, System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
    Message: The SOAP action specified on the message, ”, does not match the HTTP SOAP Action, ‘http://tempuri.org/IFileOperation/AuthenticateUser‘.

    Can anyone please help?

    Comment by Prashant Majhwar — October 3, 2007 @ 9:52 am

  22. Prashant, can you share the WSDL generated by .NET ?

    Comment by Arun Gupta — October 3, 2007 @ 9:56 am

  23. I found the solution. Netbeans 6 was by default loading the jax-ws 2.1 libraries when webservice client was generated so we forced the wsit related libraries to be loaded and it worked !!

    Comment by Prashant Majhwar — October 16, 2007 @ 7:59 am

  24. Hello Arun. the problem is that each service
    will work seperatly. but the two services can work together. in other world, if you add one service it will work fine alone. and if you add the other service it will work fine two.

    these service i will redistrubute it. and my customers will consume these two services.

    Comment by laptop batteries — November 26, 2008 @ 8:47 pm

  25. First off nice site. Im not sure if it has been addressed, however when using Chrome I can never get the entire blog to load without refreshing alot of times. Could just be my laptop. Enjoy!

    Comment by 2x tango — July 6, 2010 @ 3:37 am

RSS feed for comments on this post. TrackBack URL

Leave a comment

The views expressed on this blog are my own and do not necessarily reflect the views of Oracle.
Powered by WordPress