Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Question on user defined faults and multithreading: msg#00176

apache.webservices.axis-c.user

Subject: Question on user defined faults and multithreading

Hi
 
1) How to build a multithreaded service using axis2c? Can wsdl2c tool generate C code with multithreading functionality? If not, what is the way to implement multithreading?
2) Can we give user defined faults in wsdl file? How will wsdl2c generate code corresponding to the faults? Will the code generate any structures for these fault types? I have an example wsdl for this. But i am not able to generate code, because wsdl2c errors out saying "No element type is defined for message faultMethodRequest"
Please clarify.
 
 
Below is the wsdl for user defined faults service which takes a single integer and generates faults based on that integer value:
 
 
<wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/ " xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns=" http://www.roguewave.com/rwsf/webservice/fault" targetNamespace="http://www.roguewave.com/rwsf/webservice/fault " name="Fault">
  <message name="faultMethodRequest">
    <part name="in1" type="xsd:int"/>
  </message>
  <message name="faultMethodResponse">
    <part name="return" type="xsd:int"/>
  </message>
  <message name="InvalidRequest">
    <part name="data" type="xsd:int"/>
  </message>
  <message name="WrongParameter">
    <part name="part1" type="xsd:int"/>
    <part name="part2" type="xsd:int"/>
  </message>
  <portType name="Fault">
    <operation name="faultMethod" parameterOrder="in1">
      <input message="tns:faultMethodRequest"/>
      <output message="tns:faultMethodResponse"/>
      <fault name="InvalidRequest" message="tns:InvalidRequest"/>
      <fault name="WrongParameter" message="tns:WrongParameter"/>
    </operation>
  </portType>
  <binding name="Fault" type="tns:Fault">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/ >
    <operation name="faultMethod">
      <soap:operation soapAction="faultMethod" style="document"/>
      <input>
        <soap:body use="literal" namespace=" http://www.roguewave.com/rwsf/webservice/"/>
      </input>
      <output>
        <soap:body use="literal" namespace=" http://www.roguewave.com/rwsf/webservice/"/>
      </output>
      <fault name="InvalidRequest">
        <soap:fault name="InvalidRequest" use="literal"/>
      </fault>
      <fault name="WrongParameter">
        <soap:fault name="WrongParameter" use="literal"/>
      </fault>
    </operation>
  </binding>
  <service name="Fault">
    <port name="Fault" binding="tns:Fault">
      <soap:address location="http://localhost:8090/fault/Fault"/ >
    </port>
  </service>
</wsdl:definitions>                                                                    
 
Thanks
Sathya
 
 
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation