Hi Hari, Can you try the attached sample xml to generate the schema?
Thakns, Nuwan On Mon, Oct 24, 2016 at 9:37 AM, Nuwan Pallewela <[email protected]> wrote: > HI Hari, > > There is an issue when schema generation for default name-spaced elements > of xml sample messages. Can you try a sample xml without default > name-spaces? > > Thanks, > Nuwan > > On Sun, Oct 23, 2016 at 9:18 PM, Hariprasath Thanarajah < > [email protected]> wrote: > >> Hi Nuwan, >> >> I have used the attached outQuery.xml file to generate the input >> schema(Response of query operation) and mapped a single element OwnerId to >> an output schema which is generated from the following content of a json >> file. >> >> { >> "name":"hari", >> "id":"122222223dsfvx" >> } >> >> On Sun, Oct 23, 2016 at 6:45 AM, Nuwan Pallewela <[email protected]> wrote: >> >>> Hi Hari, >>> >>> Can you share the input schema, output schema and the mapping >>> configuration files to further analyze the issue? >>> >>> Thanks, >>> Nuwan >>> >>> On Sun, Oct 23, 2016 at 1:06 AM, Hariprasath Thanarajah < >>> [email protected]> wrote: >>> >>>> Create a public jira[1] to track this issue, >>>> >>>> [1] - https://wso2.org/jira/browse/DEVTOOLESB-767 >>>> >>>> On Sun, Oct 23, 2016 at 1:04 AM, Hariprasath Thanarajah < >>>> [email protected]> wrote: >>>> >>>>> Hi All, >>>>> >>>>> Now I am working on the dynamic schema generation for connector >>>>> operations in dev-tooling. For the initial, I have completed the dynamic >>>>> schema generation part for salesforce soap connector.I have tried a simple >>>>> use case using salesforce connector. For that used the query >>>>> operation(from >>>>> the response) to create the input schema and map an element from that to >>>>> an >>>>> output schema element using data mapper mediator. I have used the >>>>> following >>>>> attached file to create the input schema(response of query operation) and >>>>> map it to an output element. In the above case, I have created an ESB >>>>> config project and create a sample and invoke this service. When I invoke >>>>> this service I got the following error in [1] >>>>> >>>>> [1] - [2016-10-22 23:16:58,563] WARN - XMLInputReader Element name >>>>> not found : axis2ns1:LimitInfoHeader >>>>> [2016-10-22 23:16:58,563] ERROR - DataMapperMediator DataMapper >>>>> mediator : mapping failed >>>>> Input type is incorrect or Invalid element found in the message >>>>> payload : axis2ns1:LimitInfoHeader >>>>> at org.wso2.carbon.mediator.datamapper.engine.input.readers.XML >>>>> InputReader.xmlTraverse(XMLInputReader.java:170) >>>>> at org.wso2.carbon.mediator.datamapper.engine.input.readers.XML >>>>> InputReader.xmlTraverse(XMLInputReader.java:224) >>>>> at org.wso2.carbon.mediator.datamapper.engine.input.readers.XML >>>>> InputReader.xmlTraverse(XMLInputReader.java:224) >>>>> at org.wso2.carbon.mediator.datamapper.engine.input.readers.XML >>>>> InputReader.read(XMLInputReader.java:117) >>>>> at org.wso2.carbon.mediator.datamapper.engine.input.InputBuilde >>>>> r.buildInputModel(InputBuilder.java:59) >>>>> at org.wso2.carbon.mediator.datamapper.engine.core.mapper.Mappi >>>>> ngHandler.doMap(MappingHandler.java:67) >>>>> at org.wso2.carbon.mediator.datamapper.DataMapperMediator.trans >>>>> form(DataMapperMediator.java:306) >>>>> at org.wso2.carbon.mediator.datamapper.DataMapperMediator.media >>>>> te(DataMapperMediator.java:256) >>>>> at org.apache.synapse.mediators.AbstractListMediator.mediate(Ab >>>>> stractListMediator.java:97) >>>>> at org.apache.synapse.mediators.base.SequenceMediator.mediate(S >>>>> equenceMediator.java:281) >>>>> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.mediat >>>>> eFromContinuationStateStack(Axis2SynapseEnvironment.java:766) >>>>> at org.apache.synapse.core.axis2.Axis2SynapseEnvironment.inject >>>>> Message(Axis2SynapseEnvironment.java:282) >>>>> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handle >>>>> Message(SynapseCallbackReceiver.java:554) >>>>> at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receiv >>>>> e(SynapseCallbackReceiver.java:188) >>>>> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180) >>>>> at org.apache.synapse.transport.passthru.ClientWorker.run(Clien >>>>> tWorker.java:261) >>>>> at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.r >>>>> un(NativeWorkerPool.java:172) >>>>> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool >>>>> Executor.java:1145) >>>>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo >>>>> lExecutor.java:615) >>>>> at java.lang.Thread.run(Thread.java:745) >>>>> >>>>> >>>>> How can I overcome this issue? >>>>> >>>>> -- >>>>> >>>>> >>>>> *Thank you and Regards,**Hariprasath Thanarajah* >>>>> Associate Software Engineer | WSO2 >>>>> E: [email protected] >>>>> M: +94752806528, 0777216903 >>>>> Blog: hariwso2.blogspot.com >>>>> >>>>> Skype : hariss636 >>>>> LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660 >>>>> >>>>> WSO2, Inc. >>>>> lean . enterprise . middleware >>>>> >>>>> https://wso2.com/signature >>>>> http://wso2.com/about/team/hariprashath-thanarajah/ >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> >>>> *Thank you and Regards,**Hariprasath Thanarajah* >>>> Associate Software Engineer | WSO2 >>>> E: [email protected] >>>> M: +94752806528, 0777216903 >>>> Blog: hariwso2.blogspot.com >>>> >>>> Skype : hariss636 >>>> LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660 >>>> >>>> WSO2, Inc. >>>> lean . enterprise . middleware >>>> >>>> https://wso2.com/signature >>>> http://wso2.com/about/team/hariprashath-thanarajah/ >>>> >>> >>> >>> >>> -- >>> ---------------------------------------------------------- >>> >>> *Nuwan Chamara Pallewela* >>> >>> >>> *Software Engineer* >>> >>> *WSO2, Inc. *http://wso2.com >>> *lean . enterprise . middleware* >>> >>> Email *[email protected] <[email protected]>* >>> Mobile *+94719079739 <%2B94719079739>@* >>> >>> >>> >> >> >> -- >> >> >> *Thank you and Regards,**Hariprasath Thanarajah* >> Associate Software Engineer | WSO2 >> E: [email protected] >> M: +94752806528, 0777216903 >> Blog: hariwso2.blogspot.com >> >> Skype : hariss636 >> LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660 >> >> WSO2, Inc. >> lean . enterprise . middleware >> >> https://wso2.com/signature >> http://wso2.com/about/team/hariprashath-thanarajah/ >> > > > > -- > ---------------------------------------------------------- > > *Nuwan Chamara Pallewela* > > > *Software Engineer* > > *WSO2, Inc. *http://wso2.com > *lean . enterprise . middleware* > > Email *[email protected] <[email protected]>* > Mobile *+94719079739 <%2B94719079739>@* > > > -- ---------------------------------------------------------- *Nuwan Chamara Pallewela* *Software Engineer* *WSO2, Inc. *http://wso2.com *lean . enterprise . middleware* Email *[email protected] <[email protected]>* Mobile *+94719079739@*
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf1="urn:partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:sf="urn:sobject.partner.soap.sforce.com"> <soapenv:Header> <sf1:LimitInfoHeader> <sf1:limitInfo> <sf1:current>3</sf1:current> <sf1:limit>15000</sf1:limit> <sf1:type>API REQUESTS</sf1:type> </sf1:limitInfo> </sf1:LimitInfoHeader> </soapenv:Header> <soapenv:Body> <sf1:queryResponse> <sf1:result xsi:type="QueryResult"> <sf1:done>true</sf:done> <sf1:queryLocator xsi:nil="true"/> <sf1:records xsi:type="sf:sObject"> <sf:type>Account</sf:type> <sf:Id>0012800000Es2aOAAR</sf:Id> <sf:Id>0012800000Es2aOAAR</sf:Id> <sf:IsDeleted>false</sf:IsDeleted> <sf:MasterRecordId xsi:nil="true"/> <sf:Name>SampleAccount1</sf:Name> <sf:Type xsi:nil="true"/> <sf:ParentId xsi:nil="true"/> <sf:BillingStreet xsi:nil="true"/> <sf:BillingCity xsi:nil="true"/> <sf:BillingState xsi:nil="true"/> <sf:BillingPostalCode xsi:nil="true"/> <sf:BillingCountry xsi:nil="true"/> <sf:BillingLatitude xsi:nil="true"/> <sf:BillingLongitude xsi:nil="true"/> <sf:BillingGeocodeAccuracy xsi:nil="true"/> <sf:BillingAddress xsi:nil="true"/> <sf:ShippingStreet xsi:nil="true"/> <sf:ShippingCity xsi:nil="true"/> <sf:ShippingState xsi:nil="true"/> <sf:ShippingPostalCode xsi:nil="true"/> <sf:ShippingCountry xsi:nil="true"/> <sf:ShippingLatitude xsi:nil="true"/> <sf:ShippingLongitude xsi:nil="true"/> <sf:ShippingGeocodeAccuracy xsi:nil="true"/> <sf:ShippingAddress xsi:nil="true"/> <sf:Phone>1111111111</sf:Phone> <sf:Fax xsi:nil="true"/> <sf:AccountNumber xsi:nil="true"/> <sf:Website>www.salesforce1.com</sf:Website> <sf:PhotoUrl>/services/images/photo/0012800000Es2aOAAR</sf:PhotoUrl> <sf:Sic xsi:nil="true"/> <sf:Industry>Banking</sf:Industry> <sf:AnnualRevenue xsi:nil="true"/> <sf:NumberOfEmployees>100</sf:NumberOfEmployees> <sf:Ownership xsi:nil="true"/> <sf:TickerSymbol xsi:nil="true"/> <sf:Description xsi:nil="true"/> <sf:Rating xsi:nil="true"/> <sf:Site xsi:nil="true"/> <sf:OwnerId>00528000001m5RRAAY</sf:OwnerId> <sf:CreatedDate>2016-01-10T17:58:13.000Z</sf:CreatedDate> <sf:CreatedById>00528000001m5RRAAY</sf:CreatedById> <sf:LastModifiedDate>2016-01-10T17:58:13.000Z</sf:LastModifiedDate> <sf:LastModifiedById>00528000001m5RRAAY</sf:LastModifiedById> <sf:SystemModstamp>2016-01-10T17:58:13.000Z</sf:SystemModstamp> <sf:LastActivityDate xsi:nil="true"/> <sf:LastViewedDate>2016-01-10T17:58:13.000Z</sf:LastViewedDate> <sf:LastReferencedDate>2016-01-10T17:58:13.000Z</sf:LastReferencedDate> <sf:IsCustomerPortal>false</sf:IsCustomerPortal> <sf:Jigsaw xsi:nil="true"/> <sf:JigsawCompanyId xsi:nil="true"/> <sf:CleanStatus>Pending</sf:CleanStatus> <sf:AccountSource xsi:nil="true"/> <sf:DunsNumber xsi:nil="true"/> <sf:Tradestyle xsi:nil="true"/> <sf:NaicsCode xsi:nil="true"/> <sf:NaicsDesc xsi:nil="true"/> <sf:YearStarted xsi:nil="true"/> <sf:SicDesc xsi:nil="true"/> <sf:DandbCompanyId xsi:nil="true"/> <sf:CustomerPriority__c xsi:nil="true"/> <sf:SLA__c xsi:nil="true"/> <sf:Active__c xsi:nil="true"/> <sf:NumberofLocations__c xsi:nil="true"/> <sf:UpsellOpportunity__c xsi:nil="true"/> <sf:SLASerialNumber__c xsi:nil="true"/> <sf:SLAExpirationDate__c xsi:nil="true"/> <sf:sample__c xsi:nil="true"/> </sf1:records> <sf1:size>1</sf1:size> </sf1:result> </sf1:queryResponse> </soapenv:Body> </soapenv:Envelope>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
