Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » browse .wsdl extension file.(browse .wsdl extension file!)
browse .wsdl extension file. [message #1691123] Thu, 02 April 2015 09:00 Go to next message
Eclipse UserFriend
Hi ,
I am trying to browse a WSDL file with JDOM.
and here is the java code:
 
import java.io.*;
import org.jdom.*;
import org.jdom.input.*;
import org.jdom.filter.*;
import java.util.List;
import java.util.Iterator;
//import org.eclipse.core.resources.IFile;
 
public class JDOM
{
   static org.jdom.Document document;
   static Element racine;
 
   public static void main(String[] args)
   {
      //On crée une instance de SAXBuilder
      SAXBuilder sxb = new SAXBuilder();
      try
      {
         //On crée un nouveau document JDOM avec en argument le fichier XML
         //Le parsing est terminé ;)
 
         document = sxb.build(new File("Examplegrammaire.wsdl"));
 
      }
 
      catch(Exception e){
    	  e.printStackTrace();
      }
 
      //On initialise un nouvel élément racine avec l'élément racine du document.
      racine = document.getRootElement();
 
     System.out.println(  racine.getChildren() );
      System.out.println(  racine.getAttributeValue("targetNamespace") );
}

[Updated on: Thu, 02 April 2015 09:05] by Moderator

Re: browse .wsdl extension file. [message #1691124 is a reply to message #1691123] Thu, 02 April 2015 09:08 Go to previous messageGo to next message
Eclipse UserFriend
But when I run the java class, I have the following errors:
org.jdom.input.JDOMParseException: Error on line 86 of document file:/C:/Users/samsung/Desktop/copie%20de%20workspace/PluginFinal/plugin/eclipsehelio%20avec%20atl%20-%20Copie/workspace/Jdom2/Grammaire.wsdl: The prefix "soap" for element "soap:binding" is not bound.
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:465)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
	at JDOM.main(JDOM.java:24)
Caused by: org.xml.sax.SAXParseException: The prefix "soap" for element "soap:binding" is not bound.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
	... 3 more
Caused by: org.xml.sax.SAXParseException: The prefix "soap" for element "soap:binding" is not bound.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
	at JDOM.main(JDOM.java:24)
Caused by: org.xml.sax.SAXParseException: The prefix "soap" for element "soap:binding" is not bound.
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
	at com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.fatalError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:453)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:810)
	at org.jdom.input.SAXBuilder.build(SAXBuilder.java:789)
	at JDOM.main(JDOM.java:24)
Exception in thread "main" java.lang.NullPointerException
	at JDOM.main(JDOM.java:33)

anyone can help me to correct this file "Examplegrammaire.wsdl".
thank you very much

[Updated on: Thu, 02 April 2015 09:09] by Moderator

Re: browse .wsdl extension file. [message #1691125 is a reply to message #1691124] Thu, 02 April 2015 09:10 Go to previous messageGo to next message
Eclipse UserFriend
Here the file "Examplegrammaire.wsdl"
<?xml version="1.0"  encoding= "UTF-8" ?> 
<definitions name= "Web Service Mediation"
 targetNamespace="http://these-info.univ-tun.com/Web Service Mediation " 
xmlns=" http://these-info.univ-tun.comstem online" >
<types>
<schema targetNamespace="http://these-info.univ-tun.com/WSM">
</schema>
</types>
<element name="Interfaces">
<complexType >
<sequence>
<element name="client" type="string"></element>
<element name="service" type="string"></element>
</sequence>
 </complexType>
 </element> 
  <element name="legalSoapVersions">
<complexType >
<sequence>
<element name="SOAP1_1" type="string"></element>
<element name="SOAP1_2" type="string"></element>
</sequence>
 </complexType>
 </element> 
 <element name="legalTransportProtocols">
<complexType >
<sequence>
<element name="HTTP1_0" type="string"></element>
<element name="HTTP1_1" type="string"></element>
</sequence>
 </complexType>
 </element> 
  <element name="PrecService">
<complexType >
<sequence>
<element name="activer" type="string"></element>
<element name="abandonner" type="string"></element>
<element name="compenser" type="string"></element>
<element name="annuler" type="string"></element>
<element name="terminer" type="string"></element>
</sequence>
 </complexType>
 </element> 
 <element name="SafeBoolean">
<complexType >
<sequence>
<element name="Yes" type="string"></element>
<element name="No" type="string"></element>
</sequence>
 </complexType>
 </element> 
  <message name="EndPoint">
<part name="Transport" type ="legalTransportProtocols"/>
<part name="Encoding" type ="legalSoapVersions"/>
</message>
<message name= "message">
<part name="ST" type ="String"/>
<part name="DT" type ="String"/>
</message>
<portType name= "EndPointAdresses">
<operation name="EndPointAdresses">
<input name="" message="Yes"/>
</operation>
</portType>
<portType name= "EndPoints">
 <operation name="EndPoints">
<input name="" message="Yes"/>
</operation>
</portType>  
<portType name="messagePatterns">
<operation name="messagePatterns">
<input name="" message="Yes"/>
</operation>
</portType>
<portType name="validExchange">
<operation name="validExchange">
<input name="" message="Yes"/>
</operation>
</portType>
<portType name="wsdlDocs">
<operation name="wsdlDocs">
<input name="" message="Yes"/>
</operation>
</portType> 
<binding name="ConnTWS" type="wsdlns:SimplePortType">
<soap:binding  style="rpc"  transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="soap1">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS"/>
<input>
<soap:body use="encoded" 
namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>  
     <binding name="ConnTWSAct" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWSAct"/>
<input>
<soap:body use="encoded" 
namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
 <binding name="ConnTWSAbandon" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWSAbandon"/>
<input>
<soap:body use="encoded" 
namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWSCompensation" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWSCompensation"/>
<input>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
 <binding name="ConnTWSAlt" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWSAlt"/>
<input>
<soap:body use="encoded"  
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWSAnnulation" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name=foo>
<soap:operation soapAction="http://tempuri.org/action/binding.Annulation"/>
<input>
<soap:body use="encoded" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>   
<binding name="ConnTWS0" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS0"/>
<input>
<soap:body use="encoded" 
namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS2" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS2"/>
<input>
<soap:body use="encoded" 
namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding>
 <binding name="ConnTWS3"  type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS3"/>
<input>
<soap:body use="encoded" 
namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS4" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS4"/>
<input>
<soap:body use="encoded" namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS5" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS5"/>
<input>
<soap:body use="encoded" namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS6" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS6"/>
<input>
<soap:body use="encoded" namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS8" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS8"/>
<input>
<soap:body use="encoded" 
//namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" 
namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS9" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS9"/>
<input>
<soap:body use="encoded" namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS10" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS10"/>
<input>
<soap:body use="encoded" namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
<binding name="ConnTWS11" type="wsdlns:SimplePortType">
<soap:binding style="rpc" 
 transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="foo">
<soap:operation soapAction="http://tempuri.org/action/binding.ConnTWS11"/>
<input>
<soap:body use="encoded" namespace= "http://tempuri.org/message/" 
 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</input>
<output>
<soap:body use="encoded" namespace="http://tempuri.org/message/" 
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" />
</output>
</operation>
</binding> 
 <service name= "CompTWSCommon">
 <port name="PortTWSCommon" binding= "WSBinding">
  <soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
 </port>
 </service>
 <service name="CompTWSClient">
<port name="PortTWSClient" binding="WSBinding">
  <soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
 </port>
 </service>
<service name="CompTWSService">
 <port name="PortTWSService" binding="WSBinding">
  <soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
 </port>
 </service>
<service name="CompTWSMediateur">
</service>
<service name="MedGeneral">
</service>
<service name="MedAndJoin">
</service>
<service name="MedAndSplit">
</service>
<service name="MedOrJoin">
</service>
<service name="MedOrSplit">
</service>
<service name="MedXorSplit">
</service>
<service name="SCN">
<port name="getSP" binding="BindingConnTWS0">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service> 
<service name="ANDSplit">
<port name="reqSP" binding="BindingConnTWS0">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="getConfirmReservVol" binding="BindingConnTWS0">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="getConfirmReservHotel" binding="BindingConnTWS3">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="FB">
<port name="ConfirmReqReservVol" binding="BindingConnTWS2">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="ConfirmRV" binding="BindingConnTWS5">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="HR">
<port name="ConfirmReqReservHotel" binding="BindingConnTWS3">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="ConfirmRH" binding="BindingConnTWS4">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="OP">
<port name="reqEn" binding="BindingConnTWS8">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="AffirmReqP" binding="BindingConnTWS6">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="ANDJoin">
<port name="ReqPLRV" binding="BindingConnTWS5">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="ReqPLRH" binding="BindingConnTWS4">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="ConfirmReqReser" binding="BindingConnTWS6">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="XorSplit">
<port name="getEn" binding="BindingConnTWS10">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="reqEDF" binding="BindingConnTWS9">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="reqEDD" binding="BindingConnTWS8">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
<port name="reqEDT" binding="BindingConnTWS11">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="SDF">
<port name="ConfirmEnvoiEDF" binding="BindingConnTWS9">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="SDD">
<port name="ConfirmEnvoiEDD" binding="BindingConnTWS10">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
<service name="SDT">
<port name="ConfirmEnvoiEDT" binding="BindingConnTWS11">
<soap:address location="http://www.svl.com:1776/soap/servlet/rpcrouter"/>
</port>
</service>
</definitions>  
 

[Updated on: Thu, 02 April 2015 09:26] by Moderator

Re: browse .wsdl extension file. [message #1691136 is a reply to message #1691125] Thu, 02 April 2015 09:52 Go to previous messageGo to next message
Eclipse UserFriend
anyone can help me to correct this file "Examplegrammaire.wsdl".
thank you very much
Re: browse .wsdl extension file. [message #1691147 is a reply to message #1691123] Thu, 02 April 2015 10:45 Go to previous message
Eclipse UserFriend
Best you use StackOverflow for Java Ranch for general "How do I use Java
to do Xyz" questions.


On 02/04/2015 3:00 PM, FSM ISFSM wrote:
> Hi
>
> import java.io.*;
> import org.jdom.*;
> import org.jdom.input.*;
> import org.jdom.filter.*;
> import java.util.List;
> import java.util.Iterator;
> //import org.eclipse.core.resources.IFile;
>
> public class JDOM
> {
> static org.jdom.Document document;
> static Element racine;
>
> public static void main(String[] args)
> {
> //On crée une instance de SAXBuilder
> SAXBuilder sxb = new SAXBuilder();
> try
> {
> //On crée un nouveau document JDOM avec en argument le fichier
> XML
> //Le parsing est terminé ;)
>
> document = sxb.build(new File("Examplegrammaire.wsdl"));
>
> }
>
> catch(Exception e){
> e.printStackTrace();
> }
>
> //On initialise un nouvel élément racine avec l'élément racine du
> document.
> racine = document.getRootElement();
>
> System.out.println( racine.getChildren() );
> System.out.println( racine.getAttributeValue("targetNamespace") );
> }
Previous Topic:Running JavaCode on-the-fly from String
Next Topic:jsf2.2 + cdi + Target Unreachable
Goto Forum:
  


Current Time: Sun Apr 20 02:19:14 EDT 2025

Powered by FUDForum. Page generated in 0.02385 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top