xfire 客户端调用报错,求码友们指点

V 发布于 2011/10/12 16:41
阅读 2K+
收藏 0

先工程是返向生成的,费话不多说先贴码:

工厂:

package com.tyky.service;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import com.tyky.test.bean.Employee;


/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the com.tyky.service package. 
 * <p>An ObjectFactory allows you to programatically 
 * construct new instances of the Java representation 
 * for XML content. The Java representation of XML 
 * content can consist of schema derived interfaces 
 * and classes representing the binding of schema 
 * type definitions, element declarations and model 
 * groups.  Factory methods for each of these are 
 * provided in this class.
 * 
 */
@XmlRegistry
public class ObjectFactory {

    private final static QName _DelEmployeeout_QNAME = new QName("http://service.tyky.com", "delEmployeeout");
    private final static QName _GetEmployeein0_QNAME = new QName("http://service.tyky.com", "getEmployeein0");
    private final static QName _InsertEmployein0_QNAME = new QName("http://service.tyky.com", "insertEmployein0");
    private final static QName _DelEmployeein0_QNAME = new QName("http://service.tyky.com", "delEmployeein0");
    private final static QName _InsertEmployeout_QNAME = new QName("http://service.tyky.com", "insertEmployeout");
    private final static QName _GetEmployeeout_QNAME = new QName("http://service.tyky.com", "getEmployeeout");

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.tyky.service
     * 
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://service.tyky.com", name = "delEmployeeout")
    public JAXBElement<String> createDelEmployeeout(String value) {
        return new JAXBElement<String>(_DelEmployeeout_QNAME, String.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://service.tyky.com", name = "getEmployeein0")
    public JAXBElement<String> createGetEmployeein0(String value) {
        return new JAXBElement<String>(_GetEmployeein0_QNAME, String.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link Employee }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://service.tyky.com", name = "insertEmployein0")
    public JAXBElement<Employee> createInsertEmployein0(Employee value) {
        return new JAXBElement<Employee>(_InsertEmployein0_QNAME, Employee.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://service.tyky.com", name = "delEmployeein0")
    public JAXBElement<String> createDelEmployeein0(String value) {
        return new JAXBElement<String>(_DelEmployeein0_QNAME, String.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://service.tyky.com", name = "insertEmployeout")
    public JAXBElement<String> createInsertEmployeout(String value) {
        return new JAXBElement<String>(_InsertEmployeout_QNAME, String.class, null, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://service.tyky.com", name = "getEmployeeout")
    public JAXBElement<String> createGetEmployeeout(String value) {
        return new JAXBElement<String>(_GetEmployeeout_QNAME, String.class, null, value);
    }

}

实体:

package com.tyky.test.bean;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElementRef;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for Employee complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="Employee">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="address" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="id" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         &lt;element name="num" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Employee", propOrder = {
    "address",
    "id",
    "name",
    "num"
})
public class Employee {

    @XmlElementRef(name = "address", namespace = "http://bean.test.tyky.com", type = JAXBElement.class)
    protected JAXBElement<String> address;
    @XmlElementRef(name = "id", namespace = "http://bean.test.tyky.com", type = JAXBElement.class)
    protected JAXBElement<String> id;
    @XmlElementRef(name = "name", namespace = "http://bean.test.tyky.com", type = JAXBElement.class)
    protected JAXBElement<String> name;
    @XmlElementRef(name = "num", namespace = "http://bean.test.tyky.com", type = JAXBElement.class)
    protected JAXBElement<String> num;

    /**
     * Gets the value of the address property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public JAXBElement<String> getAddress() {
        return address;
    }

    /**
     * Sets the value of the address property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public void setAddress(JAXBElement<String> value) {
        this.address = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the id property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public JAXBElement<String> getId() {
        return id;
    }

    /**
     * Sets the value of the id property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public void setId(JAXBElement<String> value) {
        this.id = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the name property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public JAXBElement<String> getName() {
        return name;
    }

    /**
     * Sets the value of the name property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public void setName(JAXBElement<String> value) {
        this.name = ((JAXBElement<String> ) value);
    }

    /**
     * Gets the value of the num property.
     * 
     * @return
     *     possible object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public JAXBElement<String> getNum() {
        return num;
    }

    /**
     * Sets the value of the num property.
     * 
     * @param value
     *     allowed object is
     *     {@link JAXBElement }{@code <}{@link String }{@code >}
     *     
     */
    public void setNum(JAXBElement<String> value) {
        this.num = ((JAXBElement<String> ) value);
    }

}

package com.tyky.test.bean;

import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;


/**
 * This object contains factory methods for each 
 * Java content interface and Java element interface 
 * generated in the com.tyky.test.bean package. 
 * <p>An ObjectFactory allows you to programatically 
 * construct new instances of the Java representation 
 * for XML content. The Java representation of XML 
 * content can consist of schema derived interfaces 
 * and classes representing the binding of schema 
 * type definitions, element declarations and model 
 * groups.  Factory methods for each of these are 
 * provided in this class.
 * 
 */
@XmlRegistry
public class ObjectFactory {

    private final static QName _EmployeeName_QNAME = new QName("http://bean.test.tyky.com", "name");
    private final static QName _EmployeeAddress_QNAME = new QName("http://bean.test.tyky.com", "address");
    private final static QName _EmployeeNum_QNAME = new QName("http://bean.test.tyky.com", "num");
    private final static QName _EmployeeId_QNAME = new QName("http://bean.test.tyky.com", "id");

    /**
     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.tyky.test.bean
     * 
     */
    public ObjectFactory() {
    }

    /**
     * Create an instance of {@link Employee }
     * 
     */
    public Employee createEmployee() {
        return new Employee();
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://bean.test.tyky.com", name = "name", scope = Employee.class)
    public JAXBElement<String> createEmployeeName(String value) {
        return new JAXBElement<String>(_EmployeeName_QNAME, String.class, Employee.class, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://bean.test.tyky.com", name = "address", scope = Employee.class)
    public JAXBElement<String> createEmployeeAddress(String value) {
        return new JAXBElement<String>(_EmployeeAddress_QNAME, String.class, Employee.class, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://bean.test.tyky.com", name = "num", scope = Employee.class)
    public JAXBElement<String> createEmployeeNum(String value) {
        return new JAXBElement<String>(_EmployeeNum_QNAME, String.class, Employee.class, value);
    }

    /**
     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}
     * 
     */
    @XmlElementDecl(namespace = "http://bean.test.tyky.com", name = "id", scope = Employee.class)
    public JAXBElement<String> createEmployeeId(String value) {
        return new JAXBElement<String>(_EmployeeId_QNAME, String.class, Employee.class, value);
    }

}

客户端:

package test;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import com.tyky.test.bean.Employee;

@WebService(name = "EmployeeServiceProxyPortType", targetNamespace = "http://service.tyky.com")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL, parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface EmployeeServiceProxyPortType {


    @WebMethod(operationName = "delEmployee", action = "")
    @WebResult(name = "delEmployeeout", targetNamespace = "http://service.tyky.com")
    public String delEmployee(
        @WebParam(name = "delEmployeein0", targetNamespace = "http://service.tyky.com")
        String delEmployeein0);

    @WebMethod(operationName = "insertEmploye", action = "")
    @WebResult(name = "insertEmployeout", targetNamespace = "http://service.tyky.com")
    public String insertEmploye(
        @WebParam(name = "insertEmployein0", targetNamespace = "http://service.tyky.com")
        Employee insertEmployein0);

    @WebMethod(operationName = "getEmployee", action = "")
    @WebResult(name = "getEmployeeout", targetNamespace = "http://service.tyky.com")
    public String getEmployee(
        @WebParam(name = "getEmployeein0", targetNamespace = "http://service.tyky.com")
        String getEmployeein0);

}

package test;

import javax.jws.WebService;
import com.tyky.test.bean.Employee;

@WebService(serviceName = "EmployeeServiceProxy", targetNamespace = "http://service.tyky.com", endpointInterface = "test.EmployeeServiceProxyPortType")
public class EmployeeServiceProxyImpl
    implements EmployeeServiceProxyPortType
{


    public String delEmployee(String delEmployeein0) {
        throw new UnsupportedOperationException();
    }

    public String insertEmploye(Employee insertEmployein0) {
        throw new UnsupportedOperationException();
    }

    public String getEmployee(String getEmployeein0) {
        throw new UnsupportedOperationException();
    }

}

package test;

import java.net.MalformedURLException;
import java.util.Collection;
import java.util.HashMap;
import javax.xml.namespace.QName;
import org.codehaus.xfire.XFireRuntimeException;
import org.codehaus.xfire.aegis.AegisBindingProvider;
import org.codehaus.xfire.annotations.AnnotationServiceFactory;
import org.codehaus.xfire.annotations.jsr181.Jsr181WebAnnotations;
import org.codehaus.xfire.client.XFireProxyFactory;
import org.codehaus.xfire.jaxb2.JaxbTypeRegistry;
import org.codehaus.xfire.service.Endpoint;
import org.codehaus.xfire.service.Service;
import org.codehaus.xfire.soap.AbstractSoapBinding;
import org.codehaus.xfire.transport.TransportManager;

public class EmployeeServiceProxyClient {

    private static XFireProxyFactory proxyFactory = new XFireProxyFactory();
    private HashMap endpoints = new HashMap();
    private Service service0;

    public EmployeeServiceProxyClient() {
        create0();
        Endpoint EmployeeServiceProxyPortTypeLocalEndpointEP = service0 .addEndpoint(new QName("http://service.tyky.com", "EmployeeServiceProxyPortTypeLocalEndpoint"), new QName("http://service.tyky.com", "EmployeeServiceProxyPortTypeLocalBinding"), "xfire.local://EmployeeServiceProxy");
        endpoints.put(new QName("http://service.tyky.com", "EmployeeServiceProxyPortTypeLocalEndpoint"), EmployeeServiceProxyPortTypeLocalEndpointEP);
        Endpoint EmployeeServiceProxyHttpSoap11EndpointEP = service0 .addEndpoint(new QName("http://service.tyky.com", "EmployeeServiceProxyHttpSoap11Endpoint"), new QName("http://service.tyky.com", "EmployeeServiceProxySoap11Binding"), "http://192.9.206.199:8280/services/EmployeeServiceProxy.EmployeeServiceProxyHttpSoap11Endpoint");
        endpoints.put(new QName("http://service.tyky.com", "EmployeeServiceProxyHttpSoap11Endpoint"), EmployeeServiceProxyHttpSoap11EndpointEP);
        Endpoint EmployeeServiceProxyHttpsSoap11EndpointEP = service0 .addEndpoint(new QName("http://service.tyky.com", "EmployeeServiceProxyHttpsSoap11Endpoint"), new QName("http://service.tyky.com", "EmployeeServiceProxySoap11Binding"), "https://192.9.206.199:8243/services/EmployeeServiceProxy.EmployeeServiceProxyHttpsSoap11Endpoint");
        endpoints.put(new QName("http://service.tyky.com", "EmployeeServiceProxyHttpsSoap11Endpoint"), EmployeeServiceProxyHttpsSoap11EndpointEP);
    }

    public Object getEndpoint(Endpoint endpoint) {
        try {
            return proxyFactory.create((endpoint).getBinding(), (endpoint).getUrl());
        } catch (MalformedURLException e) {
            throw new XFireRuntimeException("Invalid URL", e);
        }
    }

    public Object getEndpoint(QName name) {
        Endpoint endpoint = ((Endpoint) endpoints.get((name)));
        if ((endpoint) == null) {
            throw new IllegalStateException("No such endpoint!");
        }
        return getEndpoint((endpoint));
    }

    public Collection getEndpoints() {
        return endpoints.values();
    }

    private void create0() {
        TransportManager tm = (org.codehaus.xfire.XFireFactory.newInstance().getXFire().getTransportManager());
        HashMap props = new HashMap();
        props.put("annotations.allow.interface", true);
        AnnotationServiceFactory asf = new AnnotationServiceFactory(new Jsr181WebAnnotations(), tm, new AegisBindingProvider(new JaxbTypeRegistry()));
        asf.setBindingCreationEnabled(false);
        service0 = asf.create((test.EmployeeServiceProxyPortType.class), props);
        {
            AbstractSoapBinding soapBinding = asf.createSoap11Binding(service0, new QName("http://service.tyky.com", "EmployeeServiceProxyPortTypeLocalBinding"), "urn:xfire:transport:local");
        }
        {
            AbstractSoapBinding soapBinding = asf.createSoap11Binding(service0, new QName("http://service.tyky.com", "EmployeeServiceProxySoap11Binding"), "http://schemas.xmlsoap.org/soap/http");
        }
    }

    public EmployeeServiceProxyPortType getEmployeeServiceProxyPortTypeLocalEndpoint() {
        return ((EmployeeServiceProxyPortType)(this).getEndpoint(new QName("http://service.tyky.com", "EmployeeServiceProxyPortTypeLocalEndpoint")));
    }

    public EmployeeServiceProxyPortType getEmployeeServiceProxyPortTypeLocalEndpoint(String url) {
        EmployeeServiceProxyPortType var = getEmployeeServiceProxyPortTypeLocalEndpoint();
        org.codehaus.xfire.client.Client.getInstance(var).setUrl(url);
        return var;
    }

    public EmployeeServiceProxyPortType getEmployeeServiceProxyHttpSoap11Endpoint() {
        return ((EmployeeServiceProxyPortType)(this).getEndpoint(new QName("http://service.tyky.com", "EmployeeServiceProxyHttpSoap11Endpoint")));
    }

    public EmployeeServiceProxyPortType getEmployeeServiceProxyHttpSoap11Endpoint(String url) {
        EmployeeServiceProxyPortType var = getEmployeeServiceProxyHttpSoap11Endpoint();
        org.codehaus.xfire.client.Client.getInstance(var).setUrl(url);
        return var;
    }

    public EmployeeServiceProxyPortType getEmployeeServiceProxyHttpsSoap11Endpoint() {
        return ((EmployeeServiceProxyPortType)(this).getEndpoint(new QName("http://service.tyky.com", "EmployeeServiceProxyHttpsSoap11Endpoint")));
    }

    public EmployeeServiceProxyPortType getEmployeeServiceProxyHttpsSoap11Endpoint(String url) {
        EmployeeServiceProxyPortType var = getEmployeeServiceProxyHttpsSoap11Endpoint();
        org.codehaus.xfire.client.Client.getInstance(var).setUrl(url);
        return var;
    }
    

}

package test;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		EmployeeServiceProxyClient ec = new EmployeeServiceProxyClient();
		EmployeeServiceProxyPortType et = ec
				.getEmployeeServiceProxyPortTypeLocalEndpoint("http://192.9.206.199:8280/services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpEndpoint");
		try {
			et.getEmployee("abc");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}

运行结果:

2011-10-12 16:29:31 org.codehaus.xfire.transport.local.LocalChannel getService
信息: Unable to locate '192.9.206.199:8280/services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpEndpoint' in ServiceRegistry
2011-10-12 16:29:31 org.codehaus.xfire.handler.DefaultFaultHandler invoke
信息: Fault occurred!
org.codehaus.xfire.fault.XFireFault: Could not find a service to invoke.
	at org.codehaus.xfire.handler.LocateBindingHandler.invoke(LocateBindingHandler.java:39)
	at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
	at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
	at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
	at org.codehaus.xfire.transport.local.LocalChannel.sendViaNewChannel(LocalChannel.java:172)
	at org.codehaus.xfire.transport.local.LocalChannel.send(LocalChannel.java:99)
	at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
	at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
	at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
	at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
	at org.codehaus.xfire.client.Client.invoke(Client.java:336)
	at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
	at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
	at $Proxy12.getEmployee(Unknown Source)
	at test.Client.main(Client.java:15)
2011-10-12 16:29:31 org.codehaus.xfire.handler.DefaultFaultHandler sendToDeadLetter
严重: Could not find service.
org.codehaus.xfire.fault.XFireFault: Could not find a service to invoke.
	at org.codehaus.xfire.handler.LocateBindingHandler.invoke(LocateBindingHandler.java:39)
	at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
	at org.codehaus.xfire.transport.DefaultEndpoint.onReceive(DefaultEndpoint.java:64)
	at org.codehaus.xfire.transport.AbstractChannel.receive(AbstractChannel.java:38)
	at org.codehaus.xfire.transport.local.LocalChannel.sendViaNewChannel(LocalChannel.java:172)
	at org.codehaus.xfire.transport.local.LocalChannel.send(LocalChannel.java:99)
	at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
	at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
	at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
	at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
	at org.codehaus.xfire.client.Client.invoke(Client.java:336)
	at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
	at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
	at $Proxy12.getEmployee(Unknown Source)
	at test.Client.main(Client.java:15)

到网络上扒了很多资料,硬是没搞出个头绪,码友们瞧瞧咋回事呢

补充个情况:

http://192.9.206.199:8280/services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpEndpoint?wsdl

是可以访问到wsdl描述文件滴

<wsdl:definitions targetNamespace="http://service.tyky.com"><wsdl:types><xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://service.tyky.com"><xsd:element name="delEmployeein0" type="xsd:string"/><xsd:element name="delEmployeeout" type="xsd:boolean"/><xsd:element name="selectEmployeein0" type="xsd:string"/><xsd:element name="selectEmployeeout" type="ns1:Employee"/><xsd:element name="insertEmployein0" type="ns1:Employee"/><xsd:element name="insertEmployeout" type="xsd:boolean"/><xsd:element name="getEmployeein0" type="xsd:string"/><xsd:element name="getEmployeeout" type="xsd:boolean"/></xsd:schema><xsd:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://bean.test.tyky.com"><xsd:complexType name="Employee"><xsd:sequence><xsd:element minOccurs="0" name="address" nillable="true" type="xsd:string"/><xsd:element minOccurs="0" name="id" nillable="true" type="xsd:string"/><xsd:element minOccurs="0" name="name" nillable="true" type="xsd:string"/><xsd:element minOccurs="0" name="num" nillable="true" type="xsd:string"/></xsd:sequence></xsd:complexType></xsd:schema></wsdl:types><wsdl:message name="getEmployeeRequest"><wsdl:part name="getEmployeein0" element="tns:getEmployeein0"/></wsdl:message><wsdl:message name="getEmployeeResponse"><wsdl:part name="getEmployeeout" element="tns:getEmployeeout"/></wsdl:message><wsdl:message name="selectEmployeeRequest"><wsdl:part name="selectEmployeein0" element="tns:selectEmployeein0"/></wsdl:message><wsdl:message name="selectEmployeeResponse"><wsdl:part name="selectEmployeeout" element="tns:selectEmployeeout"/></wsdl:message><wsdl:message name="insertEmployeRequest"><wsdl:part name="insertEmployein0" element="tns:insertEmployein0"/></wsdl:message><wsdl:message name="insertEmployeResponse"><wsdl:part name="insertEmployeout" element="tns:insertEmployeout"/></wsdl:message><wsdl:message name="delEmployeeRequest"><wsdl:part name="delEmployeein0" element="tns:delEmployeein0"/></wsdl:message><wsdl:message name="delEmployeeResponse"><wsdl:part name="delEmployeeout" element="tns:delEmployeeout"/></wsdl:message><wsdl:portType name="employeeServiceForXfireProxyPortType"><wsdl:operation name="getEmployee"><wsdl:input message="tns:getEmployeeRequest" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/getEmployeeRequest"/><wsdl:output message="tns:getEmployeeResponse" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/getEmployeeResponse"/></wsdl:operation><wsdl:operation name="selectEmployee"><wsdl:input message="tns:selectEmployeeRequest" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/selectEmployeeRequest"/><wsdl:output message="tns:selectEmployeeResponse" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/selectEmployeeResponse"/></wsdl:operation><wsdl:operation name="insertEmploye"><wsdl:input message="tns:insertEmployeRequest" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/insertEmployeRequest"/><wsdl:output message="tns:insertEmployeResponse" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/insertEmployeResponse"/></wsdl:operation><wsdl:operation name="delEmployee"><wsdl:input message="tns:delEmployeeRequest" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/delEmployeeRequest"/><wsdl:output message="tns:delEmployeeResponse" wsaw:Action="http://service.tyky.com/EmployeeServicePortType/delEmployeeResponse"/></wsdl:operation></wsdl:portType><wsdl:binding name="employeeServiceForXfireProxySoap11Binding" type="tns:employeeServiceForXfireProxyPortType"><soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/><wsdl:operation name="getEmployee"><soap:operation soapAction="" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="selectEmployee"><soap:operation soapAction="" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="insertEmploye"><soap:operation soapAction="" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation><wsdl:operation name="delEmployee"><soap:operation soapAction="" style="document"/><wsdl:input><soap:body use="literal"/></wsdl:input><wsdl:output><soap:body use="literal"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:binding name="employeeServiceForXfireProxyHttpBinding" type="tns:employeeServiceForXfireProxyPortType"><http:binding verb="POST"/><wsdl:operation name="getEmployee"><http:operation location="getEmployee"/><wsdl:input><mime:content type="text/xml" part="parameters"/></wsdl:input><wsdl:output><mime:content type="text/xml" part="parameters"/></wsdl:output></wsdl:operation><wsdl:operation name="selectEmployee"><http:operation location="selectEmployee"/><wsdl:input><mime:content type="text/xml" part="parameters"/></wsdl:input><wsdl:output><mime:content type="text/xml" part="parameters"/></wsdl:output></wsdl:operation><wsdl:operation name="insertEmploye"><http:operation location="insertEmploye"/><wsdl:input><mime:content type="text/xml" part="parameters"/></wsdl:input><wsdl:output><mime:content type="text/xml" part="parameters"/></wsdl:output></wsdl:operation><wsdl:operation name="delEmployee"><http:operation location="delEmployee"/><wsdl:input><mime:content type="text/xml" part="parameters"/></wsdl:input><wsdl:output><mime:content type="text/xml" part="parameters"/></wsdl:output></wsdl:operation></wsdl:binding><wsdl:service name="employeeServiceForXfireProxy"><wsdl:port name="employeeServiceForXfireProxyHttpSoap11Endpoint" binding="tns:employeeServiceForXfireProxySoap11Binding"><soap:address location="http://192.9.206.199:8280/services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpSoap11Endpoint"/></wsdl:port><wsdl:port name="employeeServiceForXfireProxyHttpsSoap11Endpoint" binding="tns:employeeServiceForXfireProxySoap11Binding"><soap:address location="https://192.9.206.199:8243/services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpsSoap11Endpoint"/></wsdl:port><wsdl:port name="employeeServiceForXfireProxyHttpsEndpoint" binding="tns:employeeServiceForXfireProxyHttpBinding"><http:address location="https://192.9.206.199:8243/services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpsEndpoint"/></wsdl:port><wsdl:port name="employeeServiceForXfireProxyHttpEndpoint" binding="tns:employeeServiceForXfireProxyHttpBinding"><http:address location="http://192.9.206.199:8280/services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpEndpoint"/></wsdl:port></wsdl:service></wsdl:definitions>

 

 

 

 

 

加载中
0
磊神Ray
磊神Ray
192.9.206.199:8280/services/mployeeServiceForXfireProxy.employeeServiceForXfireProxyHttpEndpoint  这个可以访问吗
0
V
V

可以访问,结果为:

<soapenv:Reason><soapenv:Text xml:lang="en-US">The endpoint reference (EPR) for the Operation not found is /services/employeeServiceForXfireProxy.employeeServiceForXfireProxyHttpEndpoint and the WSA Action = null. If this EPR was previously reachable, please contact the server administrator.</soapenv:Text></soapenv:Reason>

从结果上看action is null  但错在何处呢,不明白

返回顶部
顶部