Problems
found:
·
File
btproj.user is screw up the path of some references (dll) of the project.
Solution: Delete this file and you should be done.
Solution: Delete this file and you should be done.
·
Some
webreferences of my schemas project are creating problems in some other
projects that use some of this webreferences.
Solution: Remove webreference and use “Add Generated Itens”, now you have to correct all the maps that use the schema from the deleted webreference (good luck with this, I should have more than 250 maps to correct).
Solution: Remove webreference and use “Add Generated Itens”, now you have to correct all the maps that use the schema from the deleted webreference (good luck with this, I should have more than 250 maps to correct).
This
solution is not suitable for me, I’m trying to find another solution. Don’t
know why the “Add Service Reference”-> Advanced->Add Web Reference is not
working (none of the schemas from the webservice webreference have changed).
I found why the "Add Web Reference”
is not working for this webreference. Look at this:
As you can see the operation of adding the
webreference created two schemas (xsd), this is what is causing me problems.
Look at the first XSD:
This is not what I want. This is the content of Reference.xsd. What I wanted is the content
of the Reference1.xsd (to be available in order for me to choose witch Schema to use from this WebReference).
Solution: rename the Reference.xsd to
Reference2.xsd and Reference1.xsd to Reference.xsd recompile the schemas
project and everything runs as expected. Don’t forget to change the name of
.xsd.cs files too (Reference.xsd.cs to Reference2.xsd.cs and the Reference1.xsd.cs
to Reference.xsd.cs). Don’t forget to edit the .odx file and replace all Reference1
to Reference2, then all Reference1 to Reference (this kinda of things brings me
back memories of Biztalk 2004 where we had sometimes to edit the .odx file to
resolve some bugs lol).
I also had to Add Reference “System.Configuration”
to the schemas project in order to rebuild it with sucess.
Some colleagues told me I would have problem
using this schema when working with messages on the orquestration, but I had
none:
As you
can see I still have access to the schemas inside the schemas dll project.
Note: I noted a new file app.config that seems only
a redirection file.
Note2:
I don’t think this is a problem related with the upgrade from BTS2006. More
about this:
Other
way should use something like this:
But I think I had to tweak the result class with
the intent to give the result class the same name my old webreference had,
because if it hadn’t the same name then the path to the schema would not be the
same and I had to remake all the maps again.
Don’t know how hard this would be and if it
would work because I didn’t try this one.


