用BPEL生成的WSDL文件,我在java中调用,出错Web service message '{http://localhost:8080/complex/}fcomplexRequest' generated errors during validation: The message part 'parameters' produced the following error during validation: cvc-attribute.3: The value 'xsd:double' of attribute 'xsi:type' on element 'in2' is not valid with respect to its type, 'QName'.我实在是想不出解决办法了,请教下各位。
我的java文件内容是
String endpoint = "http://localhost:8080/active-bpel/services/complexPLTService";// 你写的那个文件
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
    
QName qn = new QName("http://localhost:8080/complex/", "fcomplex");

call.setOperation("fcomplex");
call.setOperationName(qn);

call.addParameter("in1", XMLType.XSD_DOUBLE, ParameterMode.IN);
call.addParameter("in2", XMLType.XSD_DOUBLE, ParameterMode.IN);
call.setReturnType(XMLType.XSD_DOUBLE);

 call.setUseSOAPAction(true);
 call.setSOAPActionURI("http://localhost:8080/complex/");
double a = 2;
double b = 2;
double ret = Double.parseDouble((String) call.invoke(new Object[] {
a, b }));
System.out.println(ret);