how to map from XML(xsd) to Service

Hi ,

when i try to map from generated Xml to Service input i am getting below error like

Failed to load "" type. 
 Please verify the fully-qualified type name is valid.
 Details: "".
 The type must derive from System.Web.Services.Protocols.SoapHttpClientProtocol.
 The type must have the attribute System.Web.Services.WebServiceBindingAttribute. 

thanks in advance

Chinna

December 23rd, 2013 5:59am

This error occurs when when a webreference is used in an orchestration, a logical port created for this webreference does not have a portype referred from webporttype.

You have to configure to the "existing logical port".

Check this post for more info: Failed to load type. Please verify the fully-qualified type name is valid.Details: .

Free Windows Admin Tool Kit Click here and download it now
December 23rd, 2013 6:06am

Hi Ram, thanks for ur reply,

here i am sending multple fields data to <any> element typebecause of source will change every time in source data stucture type is 

<root xmlns:apl='http://www.xxxx.in' xmlns:atl='http://www.xxxx.in/atl'>
    <product apl:entity='Product' apl:onNew='' apl:match='database.byId(id, Product)'>
        <id>id</id>
        <name>name</name>
        <external-id>externalId</external-id>
        <parent-id>string i:parent=database.byId(i, Product)</parent-id>
        <accounting-symbol>accountingSymbol</accounting-symbol>
        <long-name>alternativeName</long-name>
        <description>description</description>
        <is-closed>isClosed</is-closed>
        <accounting-code-purchase>accountingCodePurchase</accounting-code-purchase>
        <accounting-code-sale>accountingCodeSale</accounting-code-sale>
    </product>
    <apl:reply>
        <ImportAcknowledgement>
            <atl:repeat select="database.updatedItems">
                <product>
                    <id>{id}</id>
                    <external-id>{item.externalId}</external-id>
                    <success>{successful}</success>
                    <message>{error}</message>
                </product>
            </atl:repeat>
        </ImportAcknowledgement>
    </apl:reply>
</root>

in map i used masscopy functoid to map from Source Document root to destination Document root field.

the above total data is sent to destination. destination structre is 

RootNode

TemplateId

TemplateName

Document

<Any>

after in logical ports i used to select existing ports and i deployed and in Bts admin i used SOAP adapter for sending the requset to Webservice . 

here in this process iam getting the above error.

thanks

chinna


  • Edited by chinna01 23 hours 26 minutes ago
December 23rd, 2013 7:06am

This error occurs when when a webreference is used in an orchestration, a logical port created for this webreference does not have a portype referred from webporttype.

You have to configure to the existing logical port. Check this post for more info: Failed to load type. Please verify the fully-qualified type name is valid.Details: .

These post also discuss about this error, you can refer these:

http://blog.sabratech.co.uk/2010/02/more-on-using-soap-adapter-without-web.html

http://www.codeproject.com/Articles/36127/Consuming-Web-Services-without-web-references-in-B

Free Windows Admin Tool Kit Click here and download it now
December 23rd, 2013 1:53pm

Hi Ram, thanks for ur reply,

here i am sending multple fields data to <any> element typebecause of source will change every time in source data stucture type is 

<root xmlns:apl='http://www.xxxx.in' xmlns:atl='http://www.xxxx.in/atl'>
    <product apl:entity='Product' apl:onNew='' apl:match='database.byId(id, Product)'>
        <id>id</id>
        <name>name</name>
        <external-id>externalId</external-id>
        <parent-id>string i:parent=database.byId(i, Product)</parent-id>
        <accounting-symbol>accountingSymbol</accounting-symbol>
        <long-name>alternativeName</long-name>
        <description>description</description>
        <is-closed>isClosed</is-closed>
        <accounting-code-purchase>accountingCodePurchase</accounting-code-purchase>
        <accounting-code-sale>accountingCodeSale</accounting-code-sale>
    </product>
    <apl:reply>
        <ImportAcknowledgement>
            <atl:repeat select="database.updatedItems">
                <product>
                    <id>{id}</id>
                    <external-id>{item.externalId}</external-id>
                    <success>{successful}</success>
                    <message>{error}</message>
                </product>
            </atl:repeat>
        </ImportAcknowledgement>
    </apl:reply>
</root>

in map i used masscopy functoid to map from Source Document root to destination Document root field.

the above total data is sent to destination. destination structre is 

RootNode

TemplateId

TemplateName

Document

<Any>

after in logical ports i used to select existing ports and i deployed and in Bts admin i used SOAP adapter for sending the requset to Webservice . 

here in this process iam getting the above error.

thanks

chinna


  • Edited by chinna01 Monday, December 23, 2013 11:56 AM
December 23rd, 2013 2:41pm

Hi Ram, thanks for ur reply,

here i am sending multple fields data to <any> element typebecause of source will change every time in source data stucture type is 

<root xmlns:apl='http://www.xxxx.in' xmlns:atl='http://www.xxxx.in/atl'>
    <product apl:entity='Product' apl:onNew='' apl:match='database.byId(id, Product)'>
        <id>id</id>
        <name>name</name>
        <external-id>externalId</external-id>
        <parent-id>string i:parent=database.byId(i, Product)</parent-id>
        <accounting-symbol>accountingSymbol</accounting-symbol>
        <long-name>alternativeName</long-name>
        <description>description</description>
        <is-closed>isClosed</is-closed>
        <accounting-code-purchase>accountingCodePurchase</accounting-code-purchase>
        <accounting-code-sale>accountingCodeSale</accounting-code-sale>
    </product>
    <apl:reply>
        <ImportAcknowledgement>
            <atl:repeat select="database.updatedItems">
                <product>
                    <id>{id}</id>
                    <external-id>{item.externalId}</external-id>
                    <success>{successful}</success>
                    <message>{error}</message>
                </product>
            </atl:repeat>
        </ImportAcknowledgement>
    </apl:reply>
</root>

in map i used masscopy functoid to map from Source Document root to destination Document root field.

the above total data is sent to destination. destination structre is 

RootNode

TemplateId

TemplateName

Document

<Any>

after in logical ports i used to select existing ports and i deployed and in Bts admin i used SOAP adapter for sending the requset to Webservice . 

here in this process iam getting the above error.

thanks

chinna


  • Edited by chinna01 Monday, December 23, 2013 11:56 AM
Free Windows Admin Tool Kit Click here and download it now
December 23rd, 2013 2:41pm

Hi Ram, thanks for ur reply,

here i am sending multple fields data to <any> element typebecause of source will change every time in source data stucture type is 

<root xmlns:apl='http://www.xxxx.in' xmlns:atl='http://www.xxxx.in/atl'>
    <product apl:entity='Product' apl:onNew='' apl:match='database.byId(id, Product)'>
        <id>id</id>
        <name>name</name>
        <external-id>externalId</external-id>
        <parent-id>string i:parent=database.byId(i, Product)</parent-id>
        <accounting-symbol>accountingSymbol</accounting-symbol>
        <long-name>alternativeName</long-name>
        <description>description</description>
        <is-closed>isClosed</is-closed>
        <accounting-code-purchase>accountingCodePurchase</accounting-code-purchase>
        <accounting-code-sale>accountingCodeSale</accounting-code-sale>
    </product>
    <apl:reply>
        <ImportAcknowledgement>
            <atl:repeat select="database.updatedItems">
                <product>
                    <id>{id}</id>
                    <external-id>{item.externalId}</external-id>
                    <success>{successful}</success>
                    <message>{error}</message>
                </product>
            </atl:repeat>
        </ImportAcknowledgement>
    </apl:reply>
</root>

in map i used masscopy functoid to map from Source Document root to destination Document root field.

the above total data is sent to destination. destination structre is 

RootNode

TemplateId

TemplateName

Document

<Any>

after in logical ports i used to select existing ports and i deployed and in Bts admin i used SOAP adapter for sending the requset to Webservice . 

here in this process iam getting the above error.

thanks

chinna


  • Edited by chinna01 Monday, December 23, 2013 11:56 AM
December 23rd, 2013 2:41pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics