108
Handling XML Documents in a Web Service
name="PurchaseOrderService_submitPurchaseOrderResponse">
parameterOrder="PurchaseOrderXMLDoc">
message="tns:PurchaseOrderService_submitPurchaseOrder"/>
"tns:PurchaseOrderService_submitPurchaseOrderResponse"/>
...
Code Example 3.17
Mapping XML Document to 
xsd:string
Code Example 3.18 shows the equivalent Java interface for the WSDL shown
in Code Example 3.17.
public interface PurchaseOrderService extends Remote {
public String submitPurchaseOrder(String poDocument) 
throws RemoteException, InvalidOrderException;
}
Code Example 3.18
Receiving an XML Document as a 
String
 object
If you are developing your service using the Java to WSDL approach, and the
service must exchange XML documents and be interoperable with clients on any
platform, then passing documents as 
String
 objects may be your only option.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

 

Our web partners: Inexpensive Web Hosting Java Web Hosting personal webspace webspace php  linux webhost

 html web templates DreamweaverQuality Web Templates PSD Web Templates

cheap webhost j2ee web Hosting buy webspace ftp webspace adult webspace

frontpage WebHosting webspace hosting cheap webhost

Visionwebhosting.net Business web hosting division of Vision Web Hosting Inc.. All rights reserved

webhosting