Metro client for WCF service?

Discussion in 'Java' started by Uli Kunkel, Jun 22, 2009.

  1. Uli Kunkel

    Uli Kunkel Guest

    This is maybe a little OT but I found no answers anywhere else.
    I have a WCF web service and I cannot invoke it from a metro java client.
    I get the following exception:

    javax.xml.ws.WebServiceException: {http://namespace}MyPort is not a
    valid port. Valid ports are: {namespace}BasicHttpBinding_IMyPort.

    WCF has "BasicHttpBinding" port binding, and in a java client stub there
    is only the wsdl default binding "MyPort".

    Can anyone help?
     
    Uli Kunkel, Jun 22, 2009
    #1
    1. Advertisements

  2. Uli Kunkel wrote:
    > This is maybe a little OT but I found no answers anywhere else.
    > I have a WCF web service and I cannot invoke it from a metro java
    > client. I get the following exception:
    >
    > javax.xml.ws.WebServiceException: {http://namespace}MyPort is not a
    > valid port. Valid ports are: {namespace}BasicHttpBinding_IMyPort.
    >
    > WCF has "BasicHttpBinding" port binding, and in a java client stub
    > there is only the wsdl default binding "MyPort".
    >
    > Can anyone help?


    Can you post the wsdl?
     
    Mike Schilling, Jun 24, 2009
    #2
    1. Advertisements

  3. Uli Kunkel

    Uli Kunkel Guest

    Mike Schilling wrote:
    > Uli Kunkel wrote:
    >> This is maybe a little OT but I found no answers anywhere else.
    >> I have a WCF web service and I cannot invoke it from a metro java
    >> client. I get the following exception:
    >>
    >> javax.xml.ws.WebServiceException: {http://namespace}MyPort is not a
    >> valid port. Valid ports are: {namespace}BasicHttpBinding_IMyPort.
    >>
    >> WCF has "BasicHttpBinding" port binding, and in a java client stub
    >> there is only the wsdl default binding "MyPort".
    >>
    >> Can anyone help?

    >
    > Can you post the wsdl?
    >
    >


    Sorry I see that the problem is in the dotnet.
    I userd svcutil to create code for the server, but it doesn't work that
    way. It can only create code for the client!

    Anyway this works for dotnet clients, but for metro the wcf service has
    to be manually programed..
     
    Uli Kunkel, Jun 25, 2009
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Billy Zhang
    Replies:
    7
    Views:
    1,648
    Steven Cheng [MSFT]
    Jul 31, 2008
  2. Simon
    Replies:
    0
    Views:
    1,288
    Simon
    Oct 13, 2009
  3. Cindy Lee
    Replies:
    1
    Views:
    3,252
    Mr. Arnold
    Mar 19, 2010
  4. Jeff Stephens

    WCF service, legacy client using Basic authentication?

    Jeff Stephens, Jun 2, 2009, in forum: ASP .Net Security
    Replies:
    1
    Views:
    1,253
    Jeff Stephens
    Jun 2, 2009
  5. Curt K
    Replies:
    3
    Views:
    715
    John Saunders [MVP]
    Jun 15, 2007
  6. Richard Collette

    WCF Host ASP.NET Service - WSE 3.0 Client Compatibility

    Richard Collette, Aug 27, 2007, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    961
    Richard Collette
    Aug 27, 2007
  7. kellygreer1

    Web Service versus WCF Service (and Books)

    kellygreer1, Nov 8, 2007, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    292
    Andrew Faust
    Nov 9, 2007
  8. mike

    Windows Service as Web Service host without WCF?

    mike, Mar 30, 2009, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    944
Loading...