• 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: first stab at generating an XML output
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: first stab at generating an XML output


  • Subject: Re: first stab at generating an XML output
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Thu, 18 Aug 2005 10:50:49 -0400

I like Dov's digested version of the instructions, but IIRC, you also need to include the following frameworks in your project:

JavaXML.framework
JavaWebServicesSupport.framework

Regards,
Jerry

On Aug 18, 2005, at 9:53 AM, Dov Rosenberg wrote:

Here's the Readers Digest version:

1. Create a plain old java class that contains the methods that you want to
expose as web services.


2. Make the return types of your methods standard Java types to make it
easier for the consumers of your web services to deal with your data.


3. Use this method in your apps initialization:
  //initialize web services

WOWebServiceRegistrar.registerWebService ("NameOfWebService",yourclass.class,
true);


4. You can then access the WSDL of your new web service by going to the
following URL:


    http://yourhost/cgi-bin/WebObject/app.woa/ws/NameOfWebService?wsdl






On 8/18/05 9:08 AM, "WebObjects" <email@hidden> wrote:


I like the WebServices idea. I've got a 68page .pdf from Apple/WO to digest
then I suppose. Thanks for the advice!



on 8/18/05 04:38, Dov Rosenberg at email@hidden wrote:


In the appendToResponse() make sure to set the content type to "text/xml"
before returning the response. Otherwise the browsers will try to display
the page as HTML. If you are trying to integrate business processes - you
should look at the WebServices stuff - it is pretty easy with WO


On 8/18/05 3:10 AM, "Geoff Hopson" <email@hidden> wrote:


The simple solution is to build up a StringBuffer and append
away...maybe run it through a parser before you return it to validate
that the XML is at least valid.


The harder solution is to go the full DOM route. At least you get a
'purists chubby' if you go that way :-)

I say go with a StringBuffer. Get it working first. If the XML starts
to get more complex/convoluted, maybe reimplement the method to use
something else.


Geoff

On 18/08/05, WebObjects <email@hidden> wrote:

I've combed PracticalWO and BuildingWO5, and still feel a little
directionless. I have a 3rd party whose software needs to query mine, and
get the results in .xml format. Sounds pretty simple. The simple part is
getting the request in the form of a direct action. My problem/ question is
"How do I return the resulting data in the form of .xml?"


Ideally the resulting document should look like:

<?xml version="1.0" encoding="ISO8859-1" ?>
<statuscheck>
    <statuscode>12345</ statuscode>
    <statusdescription>This account is valid</ statusdescription>
</statuscheck>

Thanks for any guidance,

-Bill



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






40gmail.co>>




m


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:




40convive>>


o

n.com

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:
@conviveo
n.com


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:
40codefab.com


This email sent to email@hidden



--
__ Jerry W. Walker, Partner
C o d e F a b, LLC - "High Performance Industrial Strength Internet Enabled Systems"
email@hidden
212 465 8484 X-102 office
212 465 9178 fax



_______________________________________________ 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
  • Follow-Ups:
    • Re: first stab at generating an XML output
      • From: Dov Rosenberg <email@hidden>
References: 
 >Re: first stab at generating an XML output (From: Dov Rosenberg <email@hidden>)

  • Prev by Date: Re: AW: AW: a smaall question
  • Next by Date: Re: first stab at generating an XML output
  • Previous by thread: Re: first stab at generating an XML output
  • Next by thread: Re: first stab at generating an XML output
  • Index(es):
    • Date
    • Thread