I have a problem with confluence api soap, when I start the confluence instance, the generated wsdl is correct.
.... <!--WSDL created by Apache Axis version: 1.2.1 Built on Jun 14, 2005 (09:15:57 EDT)--> <wsdl:types> <schema targetNamespace="http://xxx.xxx.xxx.xxx:8090/plugins/servlet/soap-axis1/confluenceservice-v2" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://rpc.confluence.atlassian.com"/> <import namespace="http://xml.apache.org/xml-soap"/> <import namespace="http://beans.soap.rpc.confluence.atlassian.com"/> <import namespace="http://cluster.confluence.atlassian.com"/> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOf_xsd_string"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/> ....
But after 10-15 minutes, the wsdl is rebuilt incorrectly.
<!--WSDL created by Apache Axis version: 1.2.1 Built on Jun 14, 2005 (09:15:57 EDT)--> <wsdl:types> <schema targetNamespace="http://lang.java" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://rpc.confluence.atlassian.com"/> <import namespace="http://xxx.xxx.xxx.xxx:8090/plugins/servlet/soap-axis1/confluenceservice-v2"/> <import namespace="http://xml.apache.org/xml-soap"/> <import namespace="http://beans.soap.rpc.confluence.atlassian.com"/> <import namespace="http://cluster.confluence.atlassian.com"/> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="String"> <sequence> <element name="bytes" nillable="true" type="xsd:base64Binary"/> <element name="empty" type="xsd:boolean"/> </sequence> </complexType> </schema> <schema targetNamespace="http://xxx.xxx.xxx.xxx:8090/plugins/servlet/soap-axis1/confluenceservice-v2" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://rpc.confluence.atlassian.com"/> <import namespace="http://xml.apache.org/xml-soap"/> <import namespace="http://lang.java"/> <import namespace="http://beans.soap.rpc.confluence.atlassian.com"/> <import namespace="http://cluster.confluence.atlassian.com"/> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ArrayOf_tns1_String"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:String[]"/>
Change the basic string type to the String complex type, and add the namespace http://lang.java
Any idea why it might be?
thank you very much.
Well.. The XML-RPC and SOAP APIs are deprecated since Confluence 5.5 (seems you are using Confluence 6.0.1), and may not work as expected. Confluence has a new REST API that is recommended. This is why this might not fully work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.