(i.e. public interface EProfilePort extends java.rmi.Remote {
public org.w3c.dom.Document createProfile(org.w3c.dom.Document createProfileRequest) throws java.rmi.RemoteException; )
I am correct in that the Document object would be marshalled by Java/Axis?
From: "Wagh, Shrikant" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> CC: "Wagh, Shrikant" <[EMAIL PROTECTED]> Subject: RE: xml files in axis Date: Fri, 6 Feb 2004 13:13:09 -0600
Hello Anna,
Passing XML file as a string will also work, but you will loose all the goodies that comes with, working with XML. In turns if you use XML then you can do validation against the schema for your request (XML payload). You can specify the schema for your request in WSDL file itself or in separate schema and import it. You can check that for welformed-ness. Also you can improve the performance by saving few extra steps for converting XML->string and vice-versa. I tried with XML file for about 100K, didn't had any issue.
If you want work directly with XML DOM then here are few tips.
public interface EProfilePort extends java.rmi.Remote { public org.w3c.dom.Document createProfile(org.w3c.dom.Document createProfileRequest) throws java.rmi.RemoteException; }
Here is how you can put those in WSDL file.
<element name="createProfileReturn" type="xsd:anyType" /> <element name="createProfileRequest" type="xsd:anyType" />
If you want the validation then it can be something like
<schema targetNamespace="http://myns.com/eProfileService" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://myns.com/CreateProfile" schemaLocation="http://localhost:8070/CreateProfile.xsd" /> ....
<message name="createProfileRequestMessage"> <part element="tns1:UserProfile" name="createProfile" /> </message> <message name="createProfileResponseMessage"> <part element="tns1:createProfileReturn" name="createProfileReturn" />
</message>
Hope this helps.
Best regards, Shrikant... HPP/eProfile QA Lead. HP
For those who are interested in Web Services testing: ----------------------------------------------------- I found that WebServiceTester from Optimyz software is a very good tool for testing any types of web services, and I'm great fan of this tool. It supports all types of web services, and all simple and complex types and it very usable than any other tool in the market I ever used/evaluated. It automatically generates the SOAP requests and invokes the intended web services. It can perform functional, regression and load testing of web services. Result analysis and status reporting is just wonderful. I'll highly recommend this tool for testing web services, saves lots of time and efforts in testing web services. For more information visit http://www.optimyz.com.
DISCLAIMER ================================================================ THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT HP, AND THE INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE I/HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. =================================================================
-----Original Message----- From: Anna Bikkina [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 7:51 AM To: [EMAIL PROTECTED] Subject: xml files in axis
Hi,
I am new SOAP and axis. I have to pass an xml to the client as return type in a method. Can I do that in axis. Also is there a restriction on the size of the file I can send.
Can anyone please direct me to some examples.
Thanks, Anna.
_________________________________________________________________
Create your own personal Web page with the info you use most, at My MSN. http://click.atdmt.com/AVE/go/onm00200364ave/direct/01/
