[xquery-talk] Delete in xquery

santosh subrahmanya santogen78 at rediffmail.com
Thu May 19 12:05:56 PDT 2005


  
Hi,
   Is there any way to delete an element from either a wsdl or an xml file. suppose I have a wsdl file like this - 

<?xml version="1.0" encoding="UTF-8" ?> 
<wsdl:definitions targetNamespace="http://faults.samples1" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://faults.samples1" xmlns:intf="http://faults.samples1" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://faults.samples1" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
<complexType name="ItemVO">
<sequence>
<element name="itemDesc" nillable="true" type="xsd:string" /> 
<element name="itemID" type="xsd:int" /> 
<element name="itemPrice" type="xsd:float" /> 
<element name="itemQty" type="xsd:int" /> 
</sequence>
</complexType>
<complexType name="Vector">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType" /> 
</sequence>
  </complexType>
  <complexType name="AdvanceShipmentNoticeVO">
  <sequence>
  <element name="consignmentID" type="xsd:int" /> 
  <element name="items" nillable="true" type="impl:Vector" /> 
  <element name="orderID" nillable="true" type="xsd:string" /> 
  <element name="shipmentDate" nillable="true" type="xsd:string" /> 
  </sequence>
  </complexType>
  </schema>
  <schema targetNamespace="http://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema">
  <import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> 
  </schema>
  </wsdl:types>
  <wsdl:message name="generateShipmentAccuracyDetailsRequest">
  <wsdl:part name="resp" type="impl:Vector" /> 
  </wsdl:message>
  <wsdl:message name="searchASNResponse">
  <wsdl:part name="searchASNReturn" type="xsd:string" /> 
  </wsdl:message>
  <wsdl:message name="generateASNResponse">
  <wsdl:part name="generateASNReturn" type="xsd:string" /> 
  </wsdl:message>
  <wsdl:message name="generateASNRequest">
  <wsdl:part name="in" type="impl:AdvanceShipmentNoticeVO" /> 
  </wsdl:message>
  <wsdl:message name="generateShipmentAccuracyDetailsResponse">
  <wsdl:part name="generateShipmentAccuracyDetailsReturn" type="xsd:string" /> 
  </wsdl:message>
  <wsdl:message name="searchASNRequest">
  <wsdl:part name="asnID" type="xsd:string" /> 
  </wsdl:message>
  <wsdl:portType name="AdvanceShipmentws">
  <wsdl:operation name="generateASN" parameterOrder="in">
  <wsdl:input message="impl:generateASNRequest" name="generateASNRequest" /> 
  <wsdl:output message="impl:generateASNResponse" name="generateASNResponse" /> 
  </wsdl:operation>
  <wsdl:operation name="searchASN" parameterOrder="asnID">
  <wsdl:input message="impl:searchASNRequest" name="searchASNRequest" /> 
  <wsdl:output message="impl:searchASNResponse" name="searchASNResponse" /> 
  </wsdl:operation>
  <wsdl:operation name="generateShipmentAccuracyDetails" parameterOrder="resp">
  <wsdl:input message="impl:generateShipmentAccuracyDetailsRequest" name="generateShipmentAccuracyDetailsRequest" /> 
  <wsdl:output message="impl:generateShipmentAccuracyDetailsResponse" name="generateShipmentAccuracyDetailsResponse" /> 
  </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="AdvanceShipmentNoticeWSSoapBinding" type="impl:AdvanceShipmentws">
  <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" /> 
  <wsdl:operation name="generateASN">
  <wsdlsoap:operation soapAction="" /> 
  <wsdl:input name="generateASNRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://faults.samples1" use="encoded" /> 
  </wsdl:input>
  <wsdl:output name="generateASNResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://faults.samples1" use="encoded" /> 
  </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="searchASN">
  <wsdlsoap:operation soapAction="" /> 
  <wsdl:input name="searchASNRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://faults.samples1" use="encoded" /> 
  </wsdl:input>
  <wsdl:output name="searchASNResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://faults.samples1" use="encoded" /> 
  </wsdl:output>
  </wsdl:operation>
  <wsdl:operation name="generateShipmentAccuracyDetails">
  <wsdlsoap:operation soapAction="" /> 
  <wsdl:input name="generateShipmentAccuracyDetailsRequest">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://faults.samples1" use="encoded" /> 
  </wsdl:input>
  <wsdl:output name="generateShipmentAccuracyDetailsResponse">
  <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://faults.samples1" use="encoded" /> 
  </wsdl:output>
  </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="AdvanceShipmentwsService">
  <wsdl:port binding="impl:AdvanceShipmentNoticeWSSoapBinding" name="AdvanceShipmentNoticeWS">
  <wsdlsoap:address location="http://localhost:7001/scemaws/services/AdvanceShipmentNoticeWS" /> 
  </wsdl:port>
  </wsdl:service>
  </wsdl:definitions>

         How do I delete the binding element from this file.

Regards
Santosh Subrahmanya

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xquery.com/pipermail/talk/attachments/20050519/b51758d6/attachment.htm


More information about the talk mailing list