You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "karthik raja (JIRA)" <de...@tuscany.apache.org> on 2009/05/02 01:09:30 UTC

[jira] Created: (TUSCANY-3007) I could not access external web service

I could not access external web service
---------------------------------------

                 Key: TUSCANY-3007
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3007
             Project: Tuscany
          Issue Type: Bug
    Affects Versions: Java-SCA-1.4
         Environment: axis2 web service running. I am using Tuscany SCA 1.4 to access it (as client). Eclipse IDE. 
            Reporter: karthik raja


I have axis2 web service running. I am using Tuscany SCA 1.4 to access it (as client).
I am getting the following exception.
Exception in thread "main" java.lang.IllegalArgumentException: Pass-by-value is not supported for the given object
	at org.apache.tuscany.sca.databinding.javabeans.JavaBeansDataBinding.copy(JavaBeansDataBinding.java:106)
Caused by: java.io.NotSerializableException: org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultCodeImpl
	at java.io.ObjectOutputStream.writeObject0(Unknown Source)

My Composite
<?xml version="1.0" encoding="UTF-8"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
	xmlns:s="http://rex" targetNamespace="http://rex" name="parser"
	xmlns:wsdli="http://www.w3.org/2004/08/wsdl-instance">
	
	<component name="ParserComponent">
		<implementation.java class="com.rhi.drm.test.ParserImpl" />
		<reference name="dRMWebServiceSkeletonInterface">
			<binding.ws
			wsdli:wsdlLocation="DRMWebService.wsdl#wsdl.binding(DRMWebServiceSOAP12Binding)"
			uri="http://10.252.100.103:8080/bi/services/DRMWebService"
			/>
		</reference>
	</component>
</composite>

My WSDL
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://drmws.bi/" xmlns:axis2="http://drmws.bi/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://drmws.bi/xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://drmws.bi/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema">
			<xs:element name="OrgNode">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="OrgType" nillable="true" type="xs:string"/>
						<xs:element name="OrgCode" nillable="true" type="xs:string"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="OrganizationInfo">
				<xs:complexType>
					<xs:sequence>
					        <xs:element name="Error" nillable="true" type="xs:string"/>
						<xs:element name="ContactList" nillable="true" type="ns:ArrayOf_Contact"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:complexType name="Contact">
				<xs:sequence>
					<xs:element name="OrgType" type="xs:string"/>
					<xs:element name="EmpName" type="xs:string"/>
					<xs:element name="EmpFirstName" type="xs:string"/>
					<xs:element name="EmpLastName" type="xs:string"/>
					<xs:element name="Email" type="xs:string"/>
					<xs:element name="NetworkID" type="xs:string"/>
					<xs:element name="PosCode" type="xs:string"/>
				</xs:sequence>
			</xs:complexType>
			<xs:complexType name="ArrayOf_Contact">
				<xs:sequence>
					<xs:element maxOccurs="unbounded" minOccurs="0" name="Item" type="ns:Contact"/>
				</xs:sequence>
			</xs:complexType>
			<xs:element name="CountryCode">
				<xs:complexType>
					<xs:sequence>
						<xs:element minOccurs="0" name="CountryCode" nillable="true" type="xs:string"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:schema>
  </wsdl:types>
  <wsdl:message name="getContactOutputMessage">
    <wsdl:part name="part1" element="ns:OrganizationInfo">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="getCountryCodeInputMessage">
    <wsdl:part name="part1" element="ns:OrgNode">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="getCountryCodeOutputMessage">
    <wsdl:part name="part1" element="ns:CountryCode">
    </wsdl:part>
  </wsdl:message>
  <wsdl:message name="getContactInputMessage">
    <wsdl:part name="part1" element="ns:OrgNode">
    </wsdl:part>
  </wsdl:message>
  <wsdl:portType name="DRMWebServicePortType">
    <wsdl:operation name="getContact">
      <wsdl:input message="axis2:getContactInputMessage">
    </wsdl:input>
      <wsdl:output message="axis2:getContactOutputMessage">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getActiveContact">
      <wsdl:input message="axis2:getContactInputMessage">
    </wsdl:input>
      <wsdl:output message="axis2:getContactOutputMessage">
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getCountryCode">
      <wsdl:input message="axis2:getCountryCodeInputMessage">
    </wsdl:input>
      <wsdl:output message="axis2:getCountryCodeOutputMessage">
    </wsdl:output>
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="DRMWebServiceSOAP12Binding" type="axis2:DRMWebServicePortType">
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getContact">
      <soap12:operation soapAction="urn:getContact" soapActionRequired="false" style="document"/>
      <wsdl:input>
        <soap12:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getActiveContact">
      <soap12:operation soapAction="urn:getActiveContact" soapActionRequired="false" style="document"/>
      <wsdl:input>
        <soap12:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getCountryCode">
      <soap12:operation soapAction="urn:getCountryCode" soapActionRequired="false" style="document"/>
      <wsdl:input>
        <soap12:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="DRMWebServiceSOAP11Binding" type="axis2:DRMWebServicePortType">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="getContact">
      <soap:operation soapAction="urn:getContact" style="document"/>
      <wsdl:input>
        <soap:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getActiveContact">
      <soap:operation soapAction="urn:getActiveContact" style="document"/>
      <wsdl:input>
        <soap:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="getCountryCode">
      <soap:operation soapAction="urn:getCountryCode" style="document"/>
      <wsdl:input>
        <soap:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" namespace="http://drmws.bi/"/>
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="DRMWebService">
    <wsdl:port name="DRMWebServiceSOAP11port" binding="axis2:DRMWebServiceSOAP11Binding">
      <soap:address location="http://10.252.100.103:8080/bi/services/DRMWebService"/>
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.