• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Cannot find service Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cannot find service Error


  • Subject: Re: Cannot find service Error
  • From: Cara MacNish <email@hidden>
  • Date: Wed, 8 Feb 2006 18:20:13 +0800


Hi, anyone find a solution for this? It seems like a bug in WO to me. Surely WO shouldn't put the instance number in the urls in the wsdl doc?! This means you can access the doc at the generic (no instance) address as you'd expect, but you get the wrong wsdl doc. (I'm guessing this is what causes the error, when the QName [without instance number] doesn't match what is in the wsdl doc.)


Having to send out axis clients with instance specific WS addresses seems crazy (no good for robustness/loadbalancing). Or have I missed something?

Cheers
Cara

On 23/12/2005, at 7:29 AM, Corin Lawson wrote:

Hi,

Thanks for the advice. I think I'll hold off upgrading to 5.3.1, although I'd like to upgrade the underling Axis.

Indeed, it is possible to call the service (it works when I change the address to specify the instance number.) But since you ask:

WOWebServiceRegistrar.registerWebService(webServiceName(), com.auststyle.bders.ws.BDResellerWebServices.class, true);

And this line is found in BDResellerWebServices....

public Response checkDomain( ...

Note that the targetNamespace of the wsdl:definitions element and the schema element are different (I think that that doesn't matter, or at least it shouldn't.) I should like all the instances to have the same namespace, is that possible (or makes sense), and how could I do that?

Cheers,
Corin.


On 23/12/2005, at 9:43 AM, Pierre Frisch wrote:

No to the contrary. I have no end of problem with 5.31 and wsdl. I was just checking.

I suppose that you have verified that checkDomain is part of the allowedMethods for the BDERS service? What is the call you used to register it?

Thanks

Pierre

On 22-Dec-05, at 1:53 PM, Corin Lawson wrote:

I am using WO 5.2.3, do you recommend upgrading?

On 22/12/2005, at 10:38 PM, Pierre Frisch wrote:

Hi Corin,

Which version of WO are you using? Did you upgrade Axis?

Pierre

On 21-Dec-05, at 6:43 PM, Corin Lawson wrote:

Hi,

I am having trouble calling a web service that has multiple instances. I have written a quick and dirty client invoke it using WOWebServiceClient. This is the error that I get...

com.webobjects.foundation.NSForwardException [javax.xml.rpc.ServiceException] Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service: {http:// bders.bottledomains.net.au/cgi-bin/WebObjects/AuClub.woa/1/ws/ BDERS}BDERS: Unable to create axis service with url http:// bders.bottledomains.net.au/cgi-bin/WebObjects/AuClub.woa/ws/ BDERS?wsdl and QName {http://bders.bottledomains.net.au/cgi-bin/ WebObjects/AuClub.woa/1/ws/BDERS}BDERS: Exception trying to invoke operation: checkDomain


But when I use this url: http://bders.bottledomains.net.au/cgi- bin/WebObjects/AuClub.woa/1/ws/BDERS?wsdl. It works.

Please Explain.

I thought that it may be related to the fact that there's multiple instances. However, the same problem occurs with on instance running.

Here are some snippits of the wsdl doc:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://bders.bottledomains.net.au/cgi-bin/ WebObjects/AuClub.woa/1/ws/BDERS"
xmlns:impl="http://bders.bottledomains.net.au/cgi-bin/ WebObjects/AuClub.woa/1/ws/BDERS"
xmlns:intf="http://bders.bottledomains.net.au/cgi-bin/ WebObjects/AuClub.woa/1/ws/BDERS"
xmlns:apachesoap="http://xml.apache.org/xml-soap"; xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:tns2="http://bders.auststyle.com"; xmlns:tns1="http:// bders.bottledomains.net.au/cgi-bin/WebObjects/AuClub.woa/ws/BDERS"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns="http:// schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<schema
xmlns="http://www.w3.org/2001/XMLSchema";
targetNamespace="http://bders.bottledomains.net.au/cgi- bin/WebObjects/AuClub.woa/ws/BDERS">
<import namespace="http://schemas.xmlsoap.org/soap/ encoding/"/>


...

    </schema>
  </wsdl:types>

...

<wsdl:service name="BDERS">
<wsdl:port name="BDERS" binding="impl:BDERSSoapBinding">
<wsdlsoap:address location="http:// bders.bottledomains.net.au/cgi-bin/WebObjects/AuClub.woa/1/ws/ BDERS"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>


Cheers,

Corin.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden








_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40csse.uwa.edu.au


This email sent to email@hidden



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: WebObjects and Oracle and Openbase
  • Next by Date: Re: static popup with a WOForm
  • Previous by thread: Re: WebObjects and Oracle and Openbase
  • Next by thread: WebObjects licensing still unclear / XCode 2.1 no longer available ?
  • Index(es):
    • Date
    • Thread