Web Service Element Attributes

Use this board for starting discussions, asking questions, and giving advice on RPG programming for the IBM i platform (and predecessors.)
devinst
Profound User
Posts: 80
Joined: Mon Apr 20, 2009 11:26 am
First Name: Devin
Last Name: St. Germain
Company Name: Dupre Logistics, LLC
Phone: 337.314.2259
Address 1: 201 Energy Pkwy. Ste. 500
City: Lafayette
State / Province: Louisiana
Zip / Postal Code: 70508
Country: United States
Contact:

Web Service Element Attributes

Post by devinst »

I have created a web service provider on our Power 8 using RPG. Does anyone know of a way to receive and send element attributes when providing the service? Thanks.!!
An additional note, this is a SOAP web service.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Web Service Element Attributes

Post by Scott Klement »

Are you referring to the attributes of XML elements, here?

How did you create this web service? There are hundreds of ways of providing web services, and each one is different. I can't promise to be familiar with all of them, but if you are using a method I'm familiar with, I may be able to help.

Also, if you are referring to attributes of XML elements, please clarify if you are passing an XML document as the payload of your SOAP message, or whether you are looking to use an attribute in the SOAP message itself?
devinst
Profound User
Posts: 80
Joined: Mon Apr 20, 2009 11:26 am
First Name: Devin
Last Name: St. Germain
Company Name: Dupre Logistics, LLC
Phone: 337.314.2259
Address 1: 201 Energy Pkwy. Ste. 500
City: Lafayette
State / Province: Louisiana
Zip / Postal Code: 70508
Country: United States
Contact:

Re: Web Service Element Attributes

Post by devinst »

Scott, I am referring to the attributed within the XML element. The bellow example may better explain it than I can. I would be looking to pull in the orderType and orderNumber attributes of the OrderHeader element.
<Orders>
<Order>
<OrderHeader orderType="FREIGHT" orderNumber="123457"/>
</Order>
</Orders>

I created the RPG program then used the wizard in the application server to deploy a new service. I am not clear on your comment about the payload of the SOAP message.

Hope that help explain.

Thanks.!!
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Web Service Element Attributes

Post by Scott Klement »

How did you create this web service? (Which web service tool...?)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests