Skip to content

XAware Community

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
XAware 5.6
Need Help
Webinars and Events
Advanced Tutorials
Webinars and Events

You are here: Home arrow Forums
XAware Community Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:top down web service creation (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:top down web service creation
#5133
kvandersluis (Admin)
Admin
Posts: 402
User Online Now Click here to see the profile of this user
Re:top down web service creation 10 Years, 10 Months ago Karma: 13  
Nensy,

It looks like you are merging my wsdl.xbd into your hello.xbd. Are you trying to have a single BizDoc which either returns the WSDL, or returns the results based on the request?

You have one typo: the href should look like this: xa:href="hello.wsdl".

But the bigger issue is that my wsdl.xbd is designed to fail when 'wsdl' is not sent as the single parameter. It looks like you want to return the XML result of your query in that case. You should modify the xa:else part to remove the xa:throw, and instead insert a container element which calls your BizComp there.

I'm attaching a XAR file with a working sample of a web service with an operation that returns a customer element, constructed from 2 input parameters. The operation is implemented by cust/custWsdlOperation.xbd. I generated a WSDL for this. I then created a wrapper BizDoc, custWsdl.xbd, which performs the logic from wsdl.xbd. It detects if the request is for the WSDL file, and if so, returns custWsdlOperation.wsdl. Otherwise, it calls cust/custWsdlOperation.xbd. Once deployed, you can call it in these ways:

http://localhost:8090/xaware/bizview/cust/cust?first=fred&last=smith

-- returns customer elmement for 'fred smith'

http://localhost:8090/xaware/bizview/cust/cust?wsdl

-- returns WSDL suitable for a web service client to call the same operation.

Please let me know if this helps.
File Attachment:
File Name: custWsdl.xar
File Size: 2928
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
top down web service creation
cha0s 2009/07/16 10:20
    thread link
thread linkthread link Re:top down web service creation
kvandersluis 2009/07/17 16:57
    thread link
thread linkthread linkthread link Re:top down web service creation
cha0s 2009/07/19 08:36
    thread link
thread linkthread linkthread linkthread link Re:top down web service creation
kvandersluis 2009/07/20 18:10
    thread link
thread linkthread linkthread linkthread linkthread link Re:top down web service creation
cha0s 2009/07/21 11:42
    thread link
thread linkthread linkthread linkthread linkthread linkthread link Re:top down web service creation
kvandersluis 2009/07/21 17:28
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread link Re:top down web service creation
nensy 2009/07/22 05:50
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:top down web service creation
nensy 2009/07/22 07:08
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:top down web service creation
kvandersluis 2009/07/22 13:42
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:top down web service creation
nensy 2009/07/23 11:57
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:top down web service creation
kvandersluis 2009/07/23 13:44
    thread link
thread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread linkthread link Re:top down web service creation
nensy 2009/07/28 07:25
    thread link
thread linkthread linkthread linkthread linkthread link Re:top down web service creation
nensy 2009/07/21 11:43
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Community Login

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
Commercial
Free Training
QuickStart Packages
Image 4 Title
Image 5 Title

Visit XAware.com