Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 37055 invoked from network); 24 Jun 2004 12:03:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 24 Jun 2004 12:03:08 -0000 Received: (qmail 37296 invoked by uid 500); 24 Jun 2004 12:03:02 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 37120 invoked by uid 500); 24 Jun 2004 12:03:00 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 36863 invoked by uid 99); 24 Jun 2004 12:02:54 -0000 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=HTML_70_80,HTML_BADTAG_00_10,HTML_MESSAGE,HTML_NONELEMENT_10_20,HTML_TEXT_AFTER_BODY,HTML_TEXT_AFTER_HTML X-Spam-Check-By: apache.org Received: from [206.190.38.104] (HELO web50706.mail.yahoo.com) (206.190.38.104) by apache.org (qpsmtpd/0.27.1) with SMTP; Thu, 24 Jun 2004 05:02:51 -0700 Message-ID: <20040624120224.25989.qmail@web50706.mail.yahoo.com> Received: from [220.247.250.166] by web50706.mail.yahoo.com via HTTP; Thu, 24 Jun 2004 05:02:24 PDT Date: Thu, 24 Jun 2004 05:02:24 -0700 (PDT) From: Amila Rathnayake Subject: FW: Client and Server side samples for testing the XSD:ANY - has Changed due to the modifications done to AxisException To: axis-c-dev@ws.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1608106839-1088078544=:24396" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --0-1608106839-1088078544=:24396 Content-Type: text/plain; charset=us-ascii Clean Clean DocumentEmail MicrosoftInternetExplorer4 st1\:*{behavior:url(#default#ieooui) } /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman";} Hi All, In the CVS AxisException.cpphas changed to AxisGenException.cpp. Due to thisreason the sampleClent that I have sent earlier shouldbe changed a bit. In all the catch blocks the exceptionshould be changed from AxisException to AxisGenException. Here I have attached the modified file inthe client side. You can replace the existing ExtensibilityQueryPortType.cpp in the sampleClientwith this file. BTW thank you Susanthafor adding required functions in the parser to get the namespace prefix forgiven uri. Right now, it#8217;s avilablein the wrapper of EXPAT parser. So I will start testing with that. Once youfinish adding that to Xerces wrapper I will test thatas well. Thanks and Regards, Amila Rathnayake. -----Original Message----- From: Amila Rathnayake[mailto:writetoamila@yahoo.com] Sent: Wednesday, June 23, 2004 6:15 PM To: axis-c-dev@ws.apache.org Subject: Client and Server sidesamples for testing the XSD:ANY Hi All, Here, I am sending the sample application to test thexsd:any type support. Please find the sampleClient, sampleServer and therelevant WSDL file with the attachments. In this sample it has used the wsdl file calledExtensibilityQuery.wsdl to generate the server side skeletons and client stubs.In this wsdl it has used xsd:any type. >From the client side I have passed a sample XML string andsee whether it has added that xml string properly in to the returned array inthe anyType, after serialization and deserialization. There is still the issue that I have sent earlier. When itDeSeralize the xml string it#8217;s adding the namespace uri instead ofnamespace prefix. This is because there is no such method to return the prefixfor given namespace in the parser. Adding this method will lead to another change of the parserAPI, but to deseralize the xsd:any type properly we need to have that method inthe parser wrappers. I have tested this sample and also the request and responseSOAP messages and they are in the correct form except the above mentionedprefix problem. So that the response SOAP message is not in the correct form toview in the browser. We can keep this sample until we add that functionalityinto the parser. Once we have added this, I can change the SoapDeSerializer toinclude the correct prefix in the response. Thanks and Regards, Amila Rathnayake. --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! --0-1608106839-1088078544=:24396 Content-Type: text/html; charset=us-ascii

Hi All,

 

In the CVS AxisException.cpp has changed to AxisGenException.cpp. Due to this reason the sampleClent that I have sent earlier should be changed a bit.

 

In all the catch blocks the exception should be changed from AxisException to AxisGenException.

 

Here I have attached the modified file in the client side.

 

You can replace the existing ExtensibilityQueryPortType.cpp in the sampleClient with this file.

 

 

BTW thank you Susantha for adding required functions in the parser to get the namespace prefix for given uri.

Right now, it’s avilable in the wrapper of EXPAT parser. So I will start testing with that. Once you finish adding that to Xerces wrapper I will test that as well.

 

Thanks and Regards,

Amila Rathnayake.

 

 

 

-----Original Message-----
From: Amila Rathnayake [mailto:writetoamila@yahoo.com]
Sent:
Wednesday, June 23, 2004 6:15 PM
To: axis-c-dev@ws.apache.org
Subject: Client and Server side samples for testing the XSD:ANY

 

Hi All,

 

Here, I am sending the sample application to test the xsd:any type support. Please find the sampleClient, sampleServer and the relevant WSDL file with the attachments.

 

In this sample it has used the wsdl file called ExtensibilityQuery.wsdl to generate the server side skeletons and client stubs. In this wsdl it has used xsd:any type.

 

From the client side I have passed a sample XML string and see whether it has added that xml string properly in to the returned array in the anyType, after serialization and deserialization.

 

 

There is still the issue that I have sent earlier. When it DeSeralize the xml string it’s adding the namespace uri instead of namespace prefix. This is because there is no such method to return the prefix for given namespace in the parser.

 

Adding this method will lead to another change of the parser API, but to deseralize the xsd:any type properly we need to have that method in the parser wrappers.

 

I have tested this sample and also the request and response SOAP messages and they are in the correct form except the above mentioned prefix problem. So that the response SOAP message is not in the correct form to view in the browser. We can keep this sample until we add that functionality into the parser. Once we have added this, I can change the SoapDeSerializer to include the correct prefix in the response.

 

Thanks and Regards,

Amila Rathnayake.

 

 


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!


Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage! --0-1608106839-1088078544=:24396--