• 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: New web service project from scratch problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New web service project from scratch problems


  • Subject: Re: New web service project from scratch problems
  • From: WebObjects <email@hidden>
  • Date: Tue, 04 Oct 2005 09:36:13 -0700

Claude,

I'm going to take a stab at this and I'm sure others will correct me if
needed.

If you are just starting a new project, or retrofitting an old, there isn't
really a lot of difference.  There are a couple of entries that 'register'
your class(es) to provide web services.

In the application constructor you would need a line like this:
        // Register Web service classes.
        WOWebServiceRegistrar.registerWebService(ThisIsYour.class, true);

In the class whose methods you are exposing (ie. the class you registered as
a web service) you'll need to extend all the functionality of 'object':
    //
    public class ThisIsYour extends Object {}

>From my limited experimentation these are the very basics - and the wsdl
should be automatically generated by WO.

HTH,

-Bill


on 10/4/05 08:40, Claude VÉZINA at email@hidden wrote:

> Hello,
>
> I am creating a new project with XCode 2.1 that is to be a Web
> service. Basically, I am trying to get the same result as the
> Calculator project with no success. How the Calculator has been
> created in the first place, what options should I choose? Currently,
> I have choose "WebObject Application", add the Web Service support
> option and left everything else empty.
>
> I have been able to run my web service but as soon as I ask for wsdl,
> I got the following error:
>
> [2005-10-04 10:35:35 EDT] <WorkerThread1> AxisFault
> faultCode: {http://schemas.xmlsoap.org/soap/envelope/}
> Server.userException
> faultSubcode:
> faultString: org.xml.sax.SAXParseException: Premature end of file.
> faultActor:
> faultNode:
> faultDetail:
>      {http://xml.apache.org/axis/}stackTrace:
> org.xml.sax.SAXParseException: Premature end of file.
>      at org.apache.xerces.parsers.AbstractSAXParser.parse
> (AbstractSAXParser.java:1189)
>      at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
>      at org.apache.axis.encoding.DeserializationContextImpl.parse
> (DeserializationContextImpl.java:242)
>      at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
>      at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
>      at org.apache.axis.server.AxisServer.generateWSDL
> (AxisServer.java:488)
>      at
> com.webobjects.appserver._private.WOWebService.performActionNamed
> (WOWebService.java:349)
>      at
> com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(
> WOActionRequestHandler.java:240)
>      at
> com.webobjects.appserver._private.WOActionRequestHandler.handleRequest
> (WOActionRequestHandler.java:142)
>      at
> com.webobjects.appserver._private.WOWebServiceRequestHandler.handleReque
> st(WOWebServiceRequestHandler.java:88)
>      at com.webobjects.appserver.WOApplication.dispatchRequest
> (WOApplication.java:1306)
>      at com.webobjects.appserver._private.WOWorkerThread.runOnce
> (WOWorkerThread.java:173)
>      at com.webobjects.appserver._private.WOWorkerThread.run
> (WOWorkerThread.java:254)
>      at java.lang.Thread.run(Thread.java:552)
>
> What am I doing wrong?
>
> Thanks,
>
> Claude Vezina
> BugTV
>
>  _______________________________________________
> 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


 _______________________________________________
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

References: 
 >New web service project from scratch problems (From: Claude VÉZINA <email@hidden>)

  • Prev by Date: Re: Start Error
  • Next by Date: RE: [Solved] Start Error
  • Previous by thread: New web service project from scratch problems
  • Next by thread: Re: Re: New web service project from scratch problems
  • Index(es):
    • Date
    • Thread