axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Suriarachchi" <amilasuriarach...@gmail.com>
Subject Re: ADBException: Unexpected subelement customerRequest
Date Mon, 13 Aug 2007 08:49:32 GMT
hi,

Did you try with the Axis2 1.3 (which is put for vote)?

I tested the generated code with this class and changed xml.

public class TestClass extends TestCase {

    public void testCertificate(){
        try {
            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new
FileInputStream("test.xml"));
            Object result = CertificateRequest.Factory.parse(xmlReader);
            System.out.println("OK");
        } catch (XMLStreamException e) {
            e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
        } catch (FileNotFoundException e) {
            e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
        } catch (Exception e) {
            e.printStackTrace();  //To change body of catch statement use
File | Settings | File Templates.
        }

    }
}

<CertificateRequest xmlns="
http://portal1.landata.vic.gov.au/CustodianWebservices/1.20/WebServices">
    <customerRequest>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
        &lt;CustomerRequest&gt;
        &lt;AgentReference&gt;816377-017-4&lt;/AgentReference&gt;
        &lt;Agent&gt;LANDATA&lt;/Agent&gt;
        &lt;MessageType&gt;REQ&lt;/MessageType&gt;
        &lt;CustomerReference&gt;123456&lt;/CustomerReference&gt;
        &lt;PropertyPfi&gt;1033433&lt;/PropertyPfi&gt;
        &lt;Parcels&gt;
        &lt;Parcel&gt;
        &lt;ParcelPfi&gt;&lt;/ParcelPfi&gt;
        &lt;SPI&gt;&lt;/SPI&gt;
        &lt;LotPlan&gt;
        &lt;Lots&gt;1&lt;/Lots&gt;
        &lt;PlanNumber&gt;TP422266&lt;/PlanNumber&gt;
        &lt;Section&gt;&lt;/Section&gt;
        &lt;Block&gt;&lt;/Block&gt;
        &lt;ViewPlanLink&gt;&lt;/ViewPlanLink&gt;
        &lt;/LotPlan&gt;
        &lt;CrownAllotment&gt;
        &lt;Section&gt;&lt;/Section&gt;
        &lt;Block&gt;&lt;/Block&gt;
        &lt;Allotment&gt;&lt;/Allotment&gt;
        &lt;Portion&gt;&lt;/Portion&gt;
        &lt;SubDivision&gt;&lt;/SubDivision&gt;
        &lt;ParishDescription&gt;&lt;/ParishDescription&gt;
        &lt;/CrownAllotment&gt;
        &lt;Area&gt;&lt;/Area&gt;
        &lt;Entitlement&gt;&lt;/Entitlement&gt;
        &lt;/Parcel&gt;
        &lt;/Parcels&gt;
        &lt;SettlementDate&gt;&lt;/SettlementDate&gt;
        &lt;CommonPropertyIndicator&gt;N&lt;/CommonPropertyIndicator&gt;
        &lt;PropertyAddress&gt;
        &lt;DisplayAddress&gt;
        &lt;StreetLocation&gt;17&lt;/StreetLocation&gt;
        &lt;StreetName&gt;TAYLOR STREET&lt;/StreetName&gt;
        &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
        &lt;Postcode&gt;3068&lt;/Postcode&gt;
        &lt;/DisplayAddress&gt;
        &lt;ParsedAddress&gt;
        &lt;UnitType&gt;&lt;/UnitType&gt;
        &lt;UnitNumber1&gt;&lt;/UnitNumber1&gt;
        &lt;UnitNumber2&gt;&lt;/UnitNumber2&gt;
        &lt;FloorType&gt;&lt;/FloorType&gt;
        &lt;FloorNumber&gt;&lt;/FloorNumber&gt;
        &lt;PropertyName1&gt;&lt;/PropertyName1&gt;
        &lt;PropertyName2&gt;&lt;/PropertyName2&gt;
        &lt;LocationDescriptor&gt;&lt;/LocationDescriptor&gt;
        &lt;StreetNumber1&gt;17&lt;/StreetNumber1&gt;
        &lt;StreetNumber2&gt;&lt;/StreetNumber2&gt;
        &lt;Street&gt;TAYLOR&lt;/Street&gt;
        &lt;StreetType&gt;STREET&lt;/StreetType&gt;
        &lt;StreetSuffix&gt;&lt;/StreetSuffix&gt;
        &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
        &lt;Postcode&gt;3068&lt;/Postcode&gt;
        &lt;/ParsedAddress&gt;
        &lt;/PropertyAddress&gt;
        &lt;AlternateAddresses&gt;
        &lt;AlternateAddress&gt;&lt;/AlternateAddress&gt;
        &lt;/AlternateAddresses&gt;
        &lt;Municipality&gt;CITY OF YARRA&lt;/Municipality&gt;
        &lt;Parish&gt;JIKA JIKA&lt;/Parish&gt;
        &lt;Titles&gt;
        &lt;Title&gt;
        &lt;VolumeFolio&gt;3870/993&lt;/VolumeFolio&gt;
        &lt;ViewTitleLink&gt;&lt;/ViewTitleLink&gt;
        &lt;/Title&gt;
        &lt;/Titles&gt;
        &lt;CustodianIdentifiers&gt;
        &lt;CustodianIdentifier name="CITY OF YARRA"
type="CPN"&gt;236755&lt;/CustodianIdentifier&gt;
        &lt;/CustodianIdentifiers&gt;
        &lt;BookMemorials&gt;
        &lt;BookMemorial&gt;
        &lt;Book&gt;&lt;/Book&gt;
        &lt;Memorial&gt;&lt;/Memorial&gt;
        &lt;/BookMemorial&gt;
        &lt;/BookMemorials&gt;
        &lt;MapReferences&gt;
        &lt;MapReference&gt;
        &lt;MapName&gt;Melway&lt;/MapName&gt;
        &lt;MapPage&gt;30&lt;/MapPage&gt;
        &lt;MapGrid&gt;A9&lt;/MapGrid&gt;
        &lt;/MapReference&gt;
        &lt;MapReference&gt;
        &lt;MapName&gt;Melway&lt;/MapName&gt;
        &lt;MapPage&gt;30&lt;/MapPage&gt;
        &lt;MapGrid&gt;B9&lt;/MapGrid&gt;
        &lt;/MapReference&gt;
        &lt;MapReference&gt;
        &lt;MapName&gt;Melway&lt;/MapName&gt;
        &lt;MapPage&gt;30&lt;/MapPage&gt;
        &lt;MapGrid&gt;A10&lt;/MapGrid&gt;
        &lt;/MapReference&gt;
        &lt;MapReference&gt;
        &lt;MapName&gt;Melway&lt;/MapName&gt;
        &lt;MapPage&gt;30&lt;/MapPage&gt;
        &lt;MapGrid&gt;B10&lt;/MapGrid&gt;
        &lt;/MapReference&gt;
        &lt;/MapReferences&gt;
        &lt;RelatedProperties&gt;
        &lt;RelatedProperty&gt;
        &lt;Titles&gt;
        &lt;Title&gt;
        &lt;VolumeFolio&gt;&lt;/VolumeFolio&gt;
        &lt;ViewTitleLink&gt;&lt;/ViewTitleLink&gt;
        &lt;/Title&gt;
        &lt;/Titles&gt;
        &lt;Parcels&gt;
        &lt;Parcel&gt;
        &lt;ParcelPfi&gt;&lt;/ParcelPfi&gt;
        &lt;SPI&gt;&lt;/SPI&gt;
        &lt;LotPlan&gt;
        &lt;Lots&gt;1&lt;/Lots&gt;
        &lt;PlanNumber&gt;TP422266&lt;/PlanNumber&gt;
        &lt;Section&gt;&lt;/Section&gt;
        &lt;Block&gt;&lt;/Block&gt;
        &lt;ViewPlanLink&gt;&lt;/ViewPlanLink&gt;
        &lt;/LotPlan&gt;
        &lt;CrownAllotment&gt;
        &lt;Section&gt;&lt;/Section&gt;
        &lt;Block&gt;&lt;/Block&gt;
        &lt;Allotment&gt;&lt;/Allotment&gt;
        &lt;Portion&gt;&lt;/Portion&gt;
        &lt;SubDivision&gt;&lt;/SubDivision&gt;
        &lt;ParishDescription&gt;&lt;/ParishDescription&gt;
        &lt;/CrownAllotment&gt;
        &lt;Area&gt;&lt;/Area&gt;
        &lt;Entitlement&gt;&lt;/Entitlement&gt;
        &lt;/Parcel&gt;
        &lt;/Parcels&gt;
        &lt;PropertyAddress&gt;
        &lt;DisplayAddress&gt;
        &lt;StreetLocation&gt;17&lt;/StreetLocation&gt;
        &lt;StreetName&gt;TAYLOR STREET&lt;/StreetName&gt;
        &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
        &lt;Postcode&gt;3068&lt;/Postcode&gt;
        &lt;/DisplayAddress&gt;
        &lt;ParsedAddress&gt;
        &lt;UnitType&gt;&lt;/UnitType&gt;
        &lt;UnitNumber1&gt;&lt;/UnitNumber1&gt;
        &lt;UnitNumber2&gt;&lt;/UnitNumber2&gt;
        &lt;FloorType&gt;&lt;/FloorType&gt;
        &lt;FloorNumber&gt;&lt;/FloorNumber&gt;
        &lt;PropertyName1&gt;&lt;/PropertyName1&gt;
        &lt;PropertyName2&gt;&lt;/PropertyName2&gt;
        &lt;LocationDescriptor&gt;&lt;/LocationDescriptor&gt;
        &lt;StreetNumber1&gt;17&lt;/StreetNumber1&gt;
        &lt;StreetNumber2&gt;&lt;/StreetNumber2&gt;
        &lt;Street&gt;TAYLOR&lt;/Street&gt;
        &lt;StreetType&gt;STREET&lt;/StreetType&gt;
        &lt;StreetSuffix&gt;&lt;/StreetSuffix&gt;
        &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
        &lt;Postcode&gt;3068&lt;/Postcode&gt;
        &lt;/ParsedAddress&gt;
        &lt;/PropertyAddress&gt;
        &lt;BookMemorials&gt;
        &lt;BookMemorial&gt;
        &lt;Book&gt;&lt;/Book&gt;
        &lt;Memorial&gt;&lt;/Memorial&gt;
        &lt;/BookMemorial&gt;
        &lt;/BookMemorials&gt;
        &lt;/RelatedProperty&gt;
        &lt;/RelatedProperties&gt;
        &lt;Vendors&gt;
        &lt;Vendor&gt;
        &lt;Name&gt;&lt;/Name&gt;
        &lt;Address1&gt;&lt;/Address1&gt;
        &lt;Address2&gt;&lt;/Address2&gt;
        &lt;Country&gt;&lt;/Country&gt;
        &lt;DX&gt;&lt;/DX&gt;
        &lt;/Vendor&gt;
        &lt;/Vendors&gt;
        &lt;Purchasers&gt;
        &lt;Purchaser&gt;
        &lt;Name&gt;&lt;/Name&gt;
        &lt;Address1&gt;&lt;/Address1&gt;
        &lt;Address2&gt;&lt;/Address2&gt;
        &lt;Country&gt;&lt;/Country&gt;
        &lt;DX&gt;&lt;/DX&gt;
        &lt;/Purchaser&gt;
        &lt;/Purchasers&gt;
        &lt;BodyCorporateManager&gt;
        &lt;Name&gt;&lt;/Name&gt;
        &lt;Address1&gt;&lt;/Address1&gt;
        &lt;Address2&gt;&lt;/Address2&gt;
        &lt;Country&gt;&lt;/Country&gt;
        &lt;DX&gt;&lt;/DX&gt;
        &lt;/BodyCorporateManager&gt;
        &lt;ReadingDate&gt;&lt;/ReadingDate&gt;
        &lt;ExtraInformation&gt;&lt;/ExtraInformation&gt;
        &lt;ApplicantDetails&gt;
        &lt;Name&gt;Groupware -Testing WebService C/- LANDATA&lt;/Name&gt;
        &lt;Address1&gt;Level 14, 570 Bourke Street&lt;/Address1&gt;
        &lt;Address2&gt;Melbourne&lt;/Address2&gt;
        &lt;Country&gt;Australia&lt;/Country&gt;
        &lt;Phone&gt;8636 2456&lt;/Phone&gt;
        &lt;DX&gt;&lt;/DX&gt;
        &lt;Fax&gt;&lt;/Fax&gt;
        &lt;Email&gt;test_certificates@landata.vic.gov.au&lt;/Email&gt;
        &lt;PreferredDeliveryMethod&gt;Email&lt;/PreferredDeliveryMethod&gt;
        &lt;/ApplicantDetails&gt;
        &lt;ApplicationReason&gt;&lt;/ApplicationReason&gt;
        &lt;CertificateName code="42"&gt;Planning Certificate
Express&lt;/CertificateName&gt;
        &lt;TimeStamp&gt;2007-03-23T09:42:50&lt;/TimeStamp&gt;
        &lt;/CustomerRequest&gt;
    </customerRequest>
</CertificateRequest>

It worked fine for me. Can you please test your generated code with this
test case?

Amila.

On 8/13/07, Angus Ng <ang@gw.com.au> wrote:
>
> Yup, that's my mistake. I've changed it back to the correct one. But I
> still got the same error.
>
> I follow the stack trace and I found that somethings wrong in the
> reader.next() method from the generated code. At the beginning, the whole
> CertificateRequest is passed into the Factory:
>
> CertificateRequest.Factory.parse(param.getXMLStreamReaderWithoutCaching())
>
> which param is the OMElement of CertificateRequest.
>
> And then in the CertificateRequest.parse(XMLStreamReader reader) method,
> it will do some checking on whether it is a start element or end element,
> and it looks like it is moving a pointer from CertiricateRequest to
> CustomerRequest, which CustomerRequest is a child element of
> CertificateRequest. By debugging the code, I can see the currentNode in
> XMLStreamReader has been changed to CustomerRequest. However, when it uses
> reader.getName(), the cursor is still pointing to CertificateRequest
> content. So it ends up failing the condition statement as follow:
>
>                 if (reader.isStartElement() &&
>                         new javax.xml.namespace.QName(
>                             "
> http://portal1.landata.vic.gov.au/CustodianWebservices/1.20/WebServices",
>                             "customerRequest").equals(reader.getName())) {
>                     java.lang.String content = reader.getElementText();
>
>                     object.setCustomerRequest(
> org.apache.axis2.databinding.utils.ConverterUtil.convertToString(
>                             content));
>
>                     reader.next();
>                 } // End of if for expected property start element
>
>
> And finally throw an exception - ADBException: Unexpected subelement
> customerRequest.
>
> Does there appear to be any problem in my generated code?
>
> Regards,
> Angus
>
>
>
> On 10 Aug 2007, at 3:36 PM, Amila Suriarachchi wrote:
>
> in schema you have define the targetnamespace as
> http://portal1.landata.vic.gov.au/CustodianWebservices/1.20/WebServices
>
> but in request xml element namespce is
>
> http://portal1.landata.vic.gov.au/CustodianWebservices/1.20/CertificateCall
>
> Amila.
>
> On 8/10/07, Angus Ng <ang@gw.com.au> wrote:
> >
> > Hi,
> >
> > I got an error when I try to test my webservice using Axis2 1.3 nightly
> > build of 9 Aug 2007. I am using ADB as my binding strategy. And I create a
> > sample soap message and use soapUI to fire on the webservice. I got the
> > error as follow:
> >
> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> > ">
> >    <soapenv:Body>
> >       <soapenv:Fault>
> >          <faultcode>soapenv:Server</faultcode>
> >          <faultstring>org.apache.axis2.databinding.ADBException:
> > Unexpected subelement customerRequest</faultstring>
> >          <detail>
> >             <Exception>org.apache.axis2.AxisFault:
> > org.apache.axis2.databinding.ADBException: Unexpected subelement
> > customerRequest
> >  at org.apache.axis2.AxisFault.makeFault(AxisFault.java:417)
> >  at landata.service.adb.CertificateCallMessageReceiverInOut.fromOM(
> > CertificateCallMessageReceiverInOut.java:193)
> >  at
> > landata.service.adb.CertificateCallMessageReceiverInOut.invokeBusinessLogic
> > (CertificateCallMessageReceiverInOut.java:44)
> >  at
> > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic
> > (AbstractInOutSyncMessageReceiver.java:42)
> >  at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
> > AbstractMessageReceiver.java:96)
> > at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
> >  at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
> > (HTTPTransportUtils.java:275)
> >  at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java
> > :120)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
> > ApplicationFilterChain.java:269)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter (
> > ApplicationFilterChain.java:188)
> > at net.sf.springlayout.web.filter.LocalApplicationContext.doFilterInternal
> > (LocalApplicationContext.java:57)
> >  at org.springframework.web.filter.OncePerRequestFilter.doFilter(
> > OncePerRequestFilter.java :77)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java :215)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java :188)
> > at
> > org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(
> > OpenSessionInViewFilter.java:173)
> > at org.springframework. web.filter.OncePerRequestFilter.doFilter(
> > OncePerRequestFilter.java:77)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
> > ApplicationFilterChain.java:215)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter (
> > ApplicationFilterChain.java:188)
> > at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter (
> > PageFilter.java:39)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (
> > ApplicationFilterChain.java:215)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter (
> > ApplicationFilterChain.java:188)
> > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (
> > FilterChainProxy.java:264)
> > at org.acegisecurity.intercept. web.FilterSecurityInterceptor.invoke(
> > FilterSecurityInterceptor.java:107)
> > at org.acegisecurity.intercept .web.FilterSecurityInterceptor.doFilter(
> > FilterSecurityInterceptor.java:72)
> > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> > FilterChainProxy.java:274)
> > at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(
> > ExceptionTranslationFilter.java :110)
> > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> > FilterChainProxy.java :274)
> > at
> > org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(
> > AnonymousProcessingFilter.java:125)
> > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (
> > FilterChainProxy.java:274)
> > at org.acegisecurity.ui.AbstractProcessingFilter.doFilter (
> > AbstractProcessingFilter.java:217)
> > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter (
> > FilterChainProxy.java:274)
> > at org.acegisecurity.ui.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
> > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> > FilterChainProxy.java :274)
> > at
> > org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(
> > HttpSessionContextIntegrationFilter.java :229)
> > at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(
> > FilterChainProxy.java :274)
> > at org.acegisecurity.util.FilterChainProxy.doFilter(
> > FilterChainProxy.java:148)
> > at org.acegisecurity.util.FilterToBeanProxy.doFilter(
> > FilterToBeanProxy.java:98)
> > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > ApplicationFilterChain.java :215)
> > at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > ApplicationFilterChain.java :188)
> > at org.apache.catalina.core.StandardWrapperValve.invoke(
> > StandardWrapperValve.java :210)
> > at org.apache.catalina.core.StandardContextValve.invoke(
> > StandardContextValve.java :174)
> > at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> > AuthenticatorBase.java :433)
> > at org.apache.catalina.core.StandardHostValve.invoke(
> > StandardHostValve.java:127)
> > at org.apache.catalina.valves.ErrorReportValve.invoke(
> > ErrorReportValve.java:117)
> > at org.apache.catalina.core.StandardEngineValve.invoke(
> > StandardEngineValve.java:108)
> > at org.apache.catalina.connector.CoyoteAdapter.service(
> > CoyoteAdapter.java:151)
> > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> > :870)
> > at
> > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
> > (Http11BaseProtocol.java :665)
> > at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
> > PoolTcpEndpoint.java :528)
> > at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
> > LeaderFollowerWorkerThread.java :81)
> > at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> > ThreadPool.java :685)
> > at java.lang.Thread.run(Thread.java:613)
> > Caused by: java.lang.Exception:
> > org.apache.axis2.databinding.ADBException: Unexpected subelement
> > customerRequest
> > at au.gov.vic.landata. www.certificaterequestresponse.CertificateRequest
> > $Factory.parse(CertificateRequest.java:440)
> >  at landata.service.adb.CertificateCallMessageReceiverInOut.fromOM(
> > CertificateCallMessageReceiverInOut.java:175)
> >  ... 52 more
> > Caused by: org.apache.axis2.databinding.ADBException: Unexpected
> > subelement customerRequest
> > at au.gov.vic.landata. www.certificaterequestresponse.CertificateRequest
> > $Factory.parse(CertificateRequest.java:436)
> >  ... 53 more</Exception>
> >          </detail>
> >       </soapenv:Fault>
> >    </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> > And here is my sample soap message:
> >
> > <?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd="
> > http://www.w3.org/2001/XMLSchema">
> > <soap:Body>
> > <CertificateRequest xmlns="http://Portal1.landata.vic.gov.au/CustodianWebservices/1.20/CertificateCall
> > ">
> > <customerRequest>&lt;?xml version=' 1.0' encoding='UTF-8'?&gt;
> > &lt;CustomerRequest&gt;
> >    &lt;AgentReference&gt;816377-017-4&lt;/AgentReference&gt;
> >    &lt;Agent&gt;LANDATA&lt;/Agent&gt;
> >    &lt;MessageType&gt;REQ&lt;/MessageType&gt;
> >    &lt;CustomerReference&gt;123456&lt;/CustomerReference&gt;
> >    &lt;PropertyPfi&gt;1033433&lt;/PropertyPfi&gt;
> >    &lt;Parcels&gt;
> >       &lt;Parcel&gt;
> >          &lt;ParcelPfi&gt;&lt;/ParcelPfi&gt;
> >          &lt;SPI&gt;&lt;/SPI&gt;
> >          &lt;LotPlan&gt;
> >             &lt;Lots&gt;1&lt;/Lots&gt;
> >             &lt;PlanNumber&gt;TP422266&lt;/PlanNumber&gt;
> >             &lt;Section&gt;&lt;/Section&gt;
> >             &lt;Block&gt;&lt;/Block&gt;
> >             &lt;ViewPlanLink&gt;&lt;/ViewPlanLink&gt;
> >          &lt;/LotPlan&gt;
> >          &lt;CrownAllotment&gt;
> >             &lt;Section&gt;&lt;/Section&gt;
> >             &lt;Block&gt;&lt;/Block&gt;
> >             &lt;Allotment&gt;&lt;/Allotment&gt;
> >             &lt;Portion&gt;&lt;/Portion&gt;
> >             &lt;SubDivision&gt;&lt;/SubDivision&gt;
> >             &lt;ParishDescription&gt;&lt;/ParishDescription&gt;
> >          &lt;/CrownAllotment&gt;
> >          &lt;Area&gt;&lt;/Area&gt;
> >          &lt;Entitlement&gt;&lt;/Entitlement&gt;
> >       &lt;/Parcel&gt;
> >    &lt;/Parcels&gt;
> >    &lt;SettlementDate&gt;&lt;/SettlementDate&gt;
> >    &lt;CommonPropertyIndicator&gt;N&lt;/CommonPropertyIndicator&gt;
> >    &lt;PropertyAddress&gt;
> >       &lt;DisplayAddress&gt;
> >          &lt;StreetLocation&gt;17&lt;/StreetLocation&gt;
> >          &lt;StreetName&gt;TAYLOR STREET&lt;/StreetName&gt;
> >          &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
> >          &lt;Postcode&gt;3068&lt;/Postcode&gt;
> >       &lt;/DisplayAddress&gt;
> >       &lt;ParsedAddress&gt;
> >          &lt;UnitType&gt;&lt;/UnitType&gt;
> >          &lt;UnitNumber1&gt;&lt;/UnitNumber1&gt;
> >          &lt;UnitNumber2&gt;&lt;/UnitNumber2&gt;
> >          &lt;FloorType&gt;&lt;/FloorType&gt;
> >          &lt;FloorNumber&gt;&lt;/FloorNumber&gt;
> >          &lt;PropertyName1&gt;&lt;/PropertyName1&gt;
> >          &lt;PropertyName2&gt;&lt;/PropertyName2&gt;
> >          &lt;LocationDescriptor&gt;&lt;/LocationDescriptor&gt;
> >          &lt;StreetNumber1&gt;17&lt;/StreetNumber1&gt;
> >          &lt;StreetNumber2&gt;&lt;/StreetNumber2&gt;
> >          &lt;Street&gt;TAYLOR&lt;/Street&gt;
> >          &lt;StreetType&gt;STREET&lt;/StreetType&gt;
> >          &lt;StreetSuffix&gt;&lt;/StreetSuffix&gt;
> >          &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
> >          &lt;Postcode&gt;3068&lt;/Postcode&gt;
> >       &lt;/ParsedAddress&gt;
> >    &lt;/PropertyAddress&gt;
> >    &lt;AlternateAddresses&gt;
> >       &lt;AlternateAddress&gt;&lt;/AlternateAddress&gt;
> >    &lt;/AlternateAddresses&gt;
> >    &lt;Municipality&gt;CITY OF YARRA&lt;/Municipality&gt;
> >    &lt;Parish&gt;JIKA JIKA&lt;/Parish&gt;
> >    &lt;Titles&gt;
> >       &lt;Title&gt;
> >          &lt;VolumeFolio&gt;3870/993&lt;/VolumeFolio&gt;
> >          &lt;ViewTitleLink&gt;&lt;/ViewTitleLink&gt;
> >       &lt;/Title&gt;
> >    &lt;/Titles&gt;
> >    &lt;CustodianIdentifiers&gt;
> >       &lt;CustodianIdentifier name="CITY OF YARRA"
> > type="CPN"&gt;236755&lt;/CustodianIdentifier&gt;
> >    &lt;/CustodianIdentifiers&gt;
> >    &lt;BookMemorials&gt;
> >       &lt;BookMemorial&gt;
> >          &lt;Book&gt;&lt;/Book&gt;
> >          &lt;Memorial&gt;&lt;/Memorial&gt;
> >       &lt;/BookMemorial&gt;
> >    &lt;/BookMemorials&gt;
> >    &lt;MapReferences&gt;
> >       &lt;MapReference&gt;
> >          &lt;MapName&gt;Melway&lt;/MapName&gt;
> >          &lt;MapPage&gt;30&lt;/MapPage&gt;
> >          &lt;MapGrid&gt;A9&lt;/MapGrid&gt;
> >       &lt;/MapReference&gt;
> >       &lt;MapReference&gt;
> >          &lt;MapName&gt;Melway&lt;/MapName&gt;
> >          &lt;MapPage&gt;30&lt;/MapPage&gt;
> >          &lt;MapGrid&gt;B9&lt;/MapGrid&gt;
> >       &lt;/MapReference&gt;
> >       &lt;MapReference&gt;
> >          &lt;MapName&gt;Melway&lt;/MapName&gt;
> >          &lt;MapPage&gt;30&lt;/MapPage&gt;
> >          &lt;MapGrid&gt;A10&lt;/MapGrid&gt;
> >       &lt;/MapReference&gt;
> >       &lt;MapReference&gt;
> >          &lt;MapName&gt;Melway&lt;/MapName&gt;
> >          &lt;MapPage&gt;30&lt;/MapPage&gt;
> >          &lt;MapGrid&gt;B10&lt;/MapGrid&gt;
> >       &lt;/MapReference&gt;
> >    &lt;/MapReferences&gt;
> >    &lt;RelatedProperties&gt;
> >       &lt;RelatedProperty&gt;
> >          &lt;Titles&gt;
> >             &lt;Title&gt;
> >                &lt;VolumeFolio&gt;&lt;/VolumeFolio&gt;
> >                &lt;ViewTitleLink&gt;&lt;/ViewTitleLink&gt;
> >             &lt;/Title&gt;
> >          &lt;/Titles&gt;
> >          &lt;Parcels&gt;
> >             &lt;Parcel&gt;
> >                &lt;ParcelPfi&gt;&lt;/ParcelPfi&gt;
> >                &lt;SPI&gt;&lt;/SPI&gt;
> >                &lt;LotPlan&gt;
> >                   &lt;Lots&gt;1&lt;/Lots&gt;
> >                   &lt;PlanNumber&gt;TP422266&lt;/PlanNumber&gt;
> >                   &lt;Section&gt;&lt;/Section&gt;
> >                   &lt;Block&gt;&lt;/Block&gt;
> >                   &lt;ViewPlanLink&gt;&lt;/ViewPlanLink&gt;
> >                &lt;/LotPlan&gt;
> >                &lt;CrownAllotment&gt;
> >                   &lt;Section&gt;&lt;/Section&gt;
> >                   &lt;Block&gt;&lt;/Block&gt;
> >                   &lt;Allotment&gt;&lt;/Allotment&gt;
> >                   &lt;Portion&gt;&lt;/Portion&gt;
> >                   &lt;SubDivision&gt;&lt;/SubDivision&gt;
> >                   &lt;ParishDescription&gt;&lt;/ParishDescription&gt;
> >                &lt;/CrownAllotment&gt;
> >                &lt;Area&gt;&lt;/Area&gt;
> >                &lt;Entitlement&gt;&lt;/Entitlement&gt;
> >             &lt;/Parcel&gt;
> >          &lt;/Parcels&gt;
> >          &lt;PropertyAddress&gt;
> >             &lt;DisplayAddress&gt;
> >                &lt;StreetLocation&gt;17&lt;/StreetLocation&gt;
> >                &lt;StreetName&gt;TAYLOR STREET&lt;/StreetName&gt;
> >                &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
> >                &lt;Postcode&gt;3068&lt;/Postcode&gt;
> >             &lt;/DisplayAddress&gt;
> >             &lt;ParsedAddress&gt;
> >                &lt;UnitType&gt;&lt;/UnitType&gt;
> >                &lt;UnitNumber1&gt;&lt;/UnitNumber1&gt;
> >                &lt;UnitNumber2&gt;&lt;/UnitNumber2&gt;
> >                &lt;FloorType&gt;&lt;/FloorType&gt;
> >                &lt;FloorNumber&gt;&lt;/FloorNumber&gt;
> >                &lt;PropertyName1&gt;&lt;/PropertyName1&gt;
> >                &lt;PropertyName2&gt;&lt;/PropertyName2&gt;
> >                &lt;LocationDescriptor&gt;&lt;/LocationDescriptor&gt;
> >                &lt;StreetNumber1&gt;17&lt;/StreetNumber1&gt;
> >                &lt;StreetNumber2&gt;&lt;/StreetNumber2&gt;
> >                &lt;Street&gt;TAYLOR&lt;/Street&gt;
> >                &lt;StreetType&gt;STREET&lt;/StreetType&gt;
> >                &lt;StreetSuffix&gt;&lt;/StreetSuffix&gt;
> >                &lt;Suburb&gt;FITZROY NORTH&lt;/Suburb&gt;
> >                &lt;Postcode&gt;3068&lt;/Postcode&gt;
> >             &lt;/ParsedAddress&gt;
> >          &lt;/PropertyAddress&gt;
> >          &lt;BookMemorials&gt;
> >             &lt;BookMemorial&gt;
> >                &lt;Book&gt;&lt;/Book&gt;
> >                &lt;Memorial&gt;&lt;/Memorial&gt;
> >             &lt;/BookMemorial&gt;
> >          &lt;/BookMemorials&gt;
> >       &lt;/RelatedProperty&gt;
> >    &lt;/RelatedProperties&gt;
> >    &lt;Vendors&gt;
> >       &lt;Vendor&gt;
> >          &lt;Name&gt;&lt;/Name&gt;
> >          &lt;Address1&gt;&lt;/Address1&gt;
> >          &lt;Address2&gt;&lt;/Address2&gt;
> >          &lt;Country&gt;&lt;/Country&gt;
> >          &lt;DX&gt;&lt;/DX&gt;
> >       &lt;/Vendor&gt;
> >    &lt;/Vendors&gt;
> >    &lt;Purchasers&gt;
> >       &lt;Purchaser&gt;
> >          &lt;Name&gt;&lt;/Name&gt;
> >          &lt;Address1&gt;&lt;/Address1&gt;
> >          &lt;Address2&gt;&lt;/Address2&gt;
> >          &lt;Country&gt;&lt;/Country&gt;
> >          &lt;DX&gt;&lt;/DX&gt;
> >       &lt;/Purchaser&gt;
> >    &lt;/Purchasers&gt;
> >    &lt;BodyCorporateManager&gt;
> >       &lt;Name&gt;&lt;/Name&gt;
> >       &lt;Address1&gt;&lt;/Address1&gt;
> >       &lt;Address2&gt;&lt;/Address2&gt;
> >       &lt;Country&gt;&lt;/Country&gt;
> >       &lt;DX&gt;&lt;/DX&gt;
> >    &lt;/BodyCorporateManager&gt;
> >    &lt;ReadingDate&gt;&lt;/ReadingDate&gt;
> >    &lt;ExtraInformation&gt;&lt;/ExtraInformation&gt;
> >    &lt;ApplicantDetails&gt;
> >       &lt;Name&gt;Groupware -Testing WebService C/- LANDATA&lt;/Name&gt;
> >
> >       &lt;Address1&gt;Level 14, 570 Bourke Street&lt;/Address1&gt;
> >       &lt;Address2&gt;Melbourne&lt;/Address2&gt;
> >       &lt;Country&gt;Australia&lt;/Country&gt;
> >       &lt;Phone&gt;8636 2456&lt;/Phone&gt;
> >       &lt;DX&gt;&lt;/DX&gt;
> >       &lt;Fax&gt;&lt;/Fax&gt;
> >       &lt;Email&gt; test_certificates@landata.vic.gov.au&lt;/Email&gt;
> >
> > &lt;PreferredDeliveryMethod&gt;Email&lt;/PreferredDeliveryMethod&gt;
> >     &lt;/ApplicantDetails&gt;
> >     &lt;ApplicationReason&gt;&lt;/ApplicationReason&gt;
> >     &lt;CertificateName code="42"&gt;Planning Certificate
> > Express&lt;/CertificateName&gt;
> >     &lt;TimeStamp&gt;2007-03-23T09:42:50&lt;/TimeStamp&gt;
> > &lt;/CustomerRequest&gt;
> > </customerRequest>
> > </CertificateRequest>
> > </soap:Body>
> > </soap:Envelope>
> >
> >
> > And here is my WSDL:
> >
> > <?xml version= "1.0" encoding ="utf-8" ?>
> > < wsdl:definitions xmlns:soap =" http://schemas.xmlsoap.org/wsdl/soap/"
> > xmlns:tm =" http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc
> > =" http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime ="http://schemas.xmlsoap.org/wsdl/mime/"
> > xmlns:tns ="http://portal1.landata.vic.gov.au/CustodianWebservices/1.20/WebServices"
> > xmlns:s =" http://www.w3.org/2001/XMLSchema" xmlns:soap12 ="http://schemas.xmlsoap.org/wsdl/soap12/"
> > xmlns:http =" http://schemas.xmlsoap.org/wsdl/http/" targetNamespace ="http://portal1.landata.vic.gov.au/CustodianWebservices/1.20/WebServices"
> > xmlns:wsdl =" http://schemas.xmlsoap.org/wsdl/">
> >   < wsdl:documentation xmlns:wsdl =" http://schemas.xmlsoap.org/wsdl/">Custodian
Certificate
> > </ wsdl:documentation>
> >   <wsdl:types >
> >     <s:schema elementFormDefault= "qualified" targetNamespace ="http://portal1.landata.vic.gov.au/CustodianWebservices/1.20/WebServices
> > ">
> >       < s:element name ="CertificateRequest" >
> >         <s:complexType >
> >           <s:sequence>
> >             <s:element minOccurs ="0" maxOccurs= "1" name ="customerRequest"
> > type= "s:string" />
> >           </ s:sequence>
> >         </s:complexType >
> >       </s:element >
> >       <s:element name= "CertificateRequestResponse">
> >         < s:complexType>
> >           < s:sequence>
> >             < s:element minOccurs ="1" maxOccurs= "1" name= "CertificateRequestResult"
> > type="s:int" />
> >             <s:element minOccurs= "0" maxOccurs ="1"
> >
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
>
>


-- 
Amila Suriarachchi,
WSO2 Inc.

Mime
View raw message