<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
xmlns:s1="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="http://streamlinedsalestax.org/efile"
xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
targetNamespace="http://streamlinedsalestax.org/efile"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified"
targetNamespace="http://streamlinedsalestax.org/efile">
<s:element name="Ping">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="Message" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="PingResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="PingResult" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Send">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="Transmission">
<s:complexType>
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="SendResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="Receipt">
<s:complexType>
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Ack">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="TransmitterId">
<s:simpleType>
<s:restriction base="s:string">
<s:length value="9" />
</s:restriction>
</s:simpleType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="AckResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="Acknowledgement">
<s:complexType>
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="LastAck">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="TransmitterId">
<s:simpleType>
<s:restriction base="s:string">
<s:length value="9" />
</s:restriction>
</s:simpleType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="LastAckResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="Acknowledgement">
<s:complexType>
<s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
<s:schema elementFormDefault="qualified"
targetNamespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<s:element name="Security" type="s1:SecurityHeader" />
<s:complexType name="SecurityHeader">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
name="UsernameToken" type="s1:UsernameToken" />
</s:sequence>
</s:complexType>
<s:complexType name="UsernameToken">
<s:sequence>
<s:element minOccurs="1" maxOccurs="1"
name="Username" type="s:string" />
<s:element minOccurs="1" maxOccurs="1"
name="Password" type="s1:Password" />
</s:sequence>
</s:complexType>
<s:complexType name="Password">
<s:simpleContent>
<s:extension base="s:string">
<s:attribute name="Type" type="s:string" />
</s:extension>
</s:simpleContent>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="PingSoapIn">
<wsdl:part name="parameters" element="tns:Ping" />
</wsdl:message>
<wsdl:message name="PingSoapOut">
<wsdl:part name="parameters" element="tns:PingResponse" />
</wsdl:message>
<wsdl:message name="PingSecurity">
<wsdl:part name="Security" element="s1:Security" />
</wsdl:message>
<wsdl:message name="SendSoapIn">
<wsdl:part name="parameters" element="tns:Send" />
</wsdl:message>
<wsdl:message name="SendSoapOut">
<wsdl:part name="parameters" element="tns:SendResponse" />
</wsdl:message>
<wsdl:message name="SendSecurity">
<wsdl:part name="Security" element="s1:Security" />
</wsdl:message>
<wsdl:message name="AckSoapIn">
<wsdl:part name="parameters" element="tns:Ack" />
</wsdl:message>
<wsdl:message name="AckSoapOut">
<wsdl:part name="parameters" element="tns:AckResponse" />
</wsdl:message>
<wsdl:message name="AckSecurity">
<wsdl:part name="Security" element="s1:Security" />
</wsdl:message>
<wsdl:message name="LastAckSoapIn">
<wsdl:part name="parameters" element="tns:LastAck" />
</wsdl:message>
<wsdl:message name="LastAckSoapOut">
<wsdl:part name="parameters" element="tns:LastAckResponse" />
</wsdl:message>
<wsdl:message name="LastAckSecurity">
<wsdl:part name="Security" element="s1:Security" />
</wsdl:message>
<wsdl:portType name="EFileServiceSoap">
<wsdl:operation name="Ping">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">
Verifies connection and returns information about the
service.
</documentation>
<wsdl:input message="tns:PingSoapIn" />
<wsdl:output message="tns:PingSoapOut" />
</wsdl:operation>
<wsdl:operation name="Send">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">
Sends a SSTPTransmission and receives a SSTPReceipt.
</documentation>
<wsdl:input message="tns:SendSoapIn" />
<wsdl:output message="tns:SendSoapOut" />
</wsdl:operation>
<wsdl:operation name="Ack">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">
Gets the next available SSTPAcknowledgement.
</documentation>
<wsdl:input message="tns:AckSoapIn" />
<wsdl:output message="tns:AckSoapOut" />
</wsdl:operation>
<wsdl:operation name="LastAck">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/">
Gets the previous SSTPAcknowledgement in case of error.
</documentation>
<wsdl:input message="tns:LastAckSoapIn" />
<wsdl:output message="tns:LastAckSoapOut" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="EFileServiceSoap" type="tns:EFileServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="document" />
<wsdl:operation name="Ping">
<soap:operation
soapAction="http://streamlinedsalestax.org/efile/Ping"
style="document" />
<wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:PingSecurity" part="Security"
use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="Send">
<soap:operation
soapAction="http://streamlinedsalestax.org/efile/Send"
style="document" />
<wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:SendSecurity" part="Security"
use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="Ack">
<soap:operation
soapAction="http://streamlinedsalestax.org/efile/Ack"
style="document" />
<wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:AckSecurity" part="Security"
use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="LastAck">
<soap:operation
soapAction="http://streamlinedsalestax.org/efile/LastAck"
style="document" />
<wsdl:input>
<soap:body use="literal" />
<soap:header message="tns:LastAckSecurity"
part="Security" use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="EFileService">
<documentation xmlns="http://schemas.xmlsoap.org/wsdl/" />
<wsdl:port name="EFileServiceSoap"
binding="tns:EFileServiceSoap">
<soap:address
location="http://localhost/efile/EFileService.asmx" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
package test;
import java.util.HashMap;
import java.util.Map;
import org.apache.cxf.aegis.databinding.AegisDatabinding;
import org.apache.cxf.frontend.ServerFactoryBean;
import org.apache.cxf.jaxb.JAXBDataBinding;
import org.apache.cxf.service.factory.ReflectionServiceFactoryBean;
public class My_EFileService_Server {
public static void main(String args[]) {
try {
My_EFileService_Server ts = new My_EFileService_Server();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public My_EFileService_Server() throws Exception {
ServerFactoryBean sf = new ServerFactoryBean();
Class clazz = getClass().getClassLoader().loadClass(
"org.streamlinedsalestax.efile.EFileServiceSoapImpl");
sf.setServiceClass(clazz);
sf.setAddress("http://localhost:6980/EFileService");
sf.setDataBinding(new AegisDatabinding());
sf.create();
}
}