Hi,

I think the correct solution should be we fix this from ESB Tooling itself.

Hariprasath is checking this.

@Viraj / Nuwan - Please mentor this task.

https://wso2.org/jira/browse/DEVTOOLESB-767

On Mon, Oct 24, 2016 at 1:58 PM, Hariprasath Thanarajah <
[email protected]> wrote:

> Hi Nuwan,
>
> It is working for me with the sample xml that you sent me to generate the
> schema. But the issue is, For the sample xml we just get the response from
> the connector operation dynamically and from that only we can create the
> schema.
>
> On Mon, Oct 24, 2016 at 11:54 AM, Nuwan Pallewela <[email protected]> wrote:
>
>> Hi,
>>
>> Please apply the patch0493 to esb and try it.
>>
>> Thanks,
>> Nuwan
>>
>> On Mon, Oct 24, 2016 at 11:31 AM, Hariprasath Thanarajah <
>> [email protected]> wrote:
>>
>>> Hi Nuwan,
>>>
>>> I have tried with the sample xml you sent to me to generate the schema.
>>> But I got the below error.
>>>
>>>
>>>
>>> On Mon, Oct 24, 2016 at 10:58 AM, Nuwan Pallewela <[email protected]>
>>> wrote:
>>>
>>>> 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.datam
>>>>>>>>> apper.engine.input.readers.XMLInputReader.xmlTraverse(XMLInp
>>>>>>>>> utReader.java:170)
>>>>>>>>>     at org.wso2.carbon.mediator.datam
>>>>>>>>> apper.engine.input.readers.XMLInputReader.xmlTraverse(XMLInp
>>>>>>>>> utReader.java:224)
>>>>>>>>>     at org.wso2.carbon.mediator.datam
>>>>>>>>> apper.engine.input.readers.XMLInputReader.xmlTraverse(XMLInp
>>>>>>>>> utReader.java:224)
>>>>>>>>>     at org.wso2.carbon.mediator.datam
>>>>>>>>> apper.engine.input.readers.XMLInputReader.read(XMLInputReade
>>>>>>>>> r.java:117)
>>>>>>>>>     at org.wso2.carbon.mediator.datam
>>>>>>>>> apper.engine.input.InputBuilder.buildInputModel(InputBuilder
>>>>>>>>> .java:59)
>>>>>>>>>     at org.wso2.carbon.mediator.datam
>>>>>>>>> apper.engine.core.mapper.MappingHandler.doMap(MappingHandler
>>>>>>>>> .java:67)
>>>>>>>>>     at org.wso2.carbon.mediator.datam
>>>>>>>>> apper.DataMapperMediator.transform(DataMapperMediator.java:306)
>>>>>>>>>     at org.wso2.carbon.mediator.datam
>>>>>>>>> apper.DataMapperMediator.mediate(DataMapperMediator.java:256)
>>>>>>>>>     at org.apache.synapse.mediators.A
>>>>>>>>> bstractListMediator.mediate(AbstractListMediator.java:97)
>>>>>>>>>     at org.apache.synapse.mediators.b
>>>>>>>>> ase.SequenceMediator.mediate(SequenceMediator.java:281)
>>>>>>>>>     at org.apache.synapse.core.axis2.
>>>>>>>>> Axis2SynapseEnvironment.mediateFromContinuationStateStack(Ax
>>>>>>>>> is2SynapseEnvironment.java:766)
>>>>>>>>>     at org.apache.synapse.core.axis2.
>>>>>>>>> Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironmen
>>>>>>>>> t.java:282)
>>>>>>>>>     at org.apache.synapse.core.axis2.
>>>>>>>>> SynapseCallbackReceiver.handleMessage(SynapseCallbackReceive
>>>>>>>>> r.java:554)
>>>>>>>>>     at org.apache.synapse.core.axis2.
>>>>>>>>> SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:188)
>>>>>>>>>     at org.apache.axis2.engine.AxisEn
>>>>>>>>> gine.receive(AxisEngine.java:180)
>>>>>>>>>     at org.apache.synapse.transport.p
>>>>>>>>> assthru.ClientWorker.run(ClientWorker.java:261)
>>>>>>>>>     at org.apache.axis2.transport.bas
>>>>>>>>> e.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
>>>>>>>>>     at java.util.concurrent.ThreadPoo
>>>>>>>>> lExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>>>>>     at java.util.concurrent.ThreadPoo
>>>>>>>>> lExecutor$Worker.run(ThreadPoolExecutor.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/ha
>>>>>>>>> riprasath-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/ha
>>>>>>>> riprasath-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/ha
>>>>>> riprasath-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 <%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>@*
>>
>>
>>
>
>
> --
>
>
> *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/
>



-- 

Best Regards,

Malaka Silva
Senior Technical Lead
M: +94 777 219 791
Tel : 94 11 214 5345
Fax :94 11 2145300
Skype : malaka.sampath.silva
LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77
Blog : http://mrmalakasilva.blogspot.com/

WSO2, Inc.
lean . enterprise . middleware
https://wso2.com/signature
http://www.wso2.com/about/team/malaka-silva/
<http://wso2.com/about/team/malaka-silva/>
https://store.wso2.com/store/

Don't make Trees rare, we should keep them with care
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to