Open GoogleCodeExporter opened 9 years ago
Sorry for the confusion, it turns out this is not a problem with imported
namespaces... it is only a problem with packaged .proto files that have rpc
definitions and use fixCase, for example:
------------------------------------
package com.test.a.messages;
message TestA {
required string value = 1;
}
service Renewal
{
rpc TestMethod(TestA) returns (TestA);
}
------------------------------------
The above (with fixCase) will put TestA in "Com.Test.A.Messages", but will
define
TestMethod as:
com.test.a.messages.TestA TestMethod(com.test.a.messages.TestA request);
... the fix for this was pretty easy, I replaced:
<xsl:template match="MethodDescriptorProto/input_type |
MethodDescriptorProto/output_type">
<xsl:value-of select="substring-after(.,'.')"/>
</xsl:template>
with:
<xsl:template match="MethodDescriptorProto/input_type |
MethodDescriptorProto/output_type">
<xsl:call-template name="pascal">
<xsl:with-param name="value" select="substring-after(.,'.')"/>
</xsl:call-template>
</xsl:template>
Original comment by scoo...@gmail.com
on 3 Mar 2010 at 1:30
OK - I'll investigate. Thanks.
Original comment by marc.gravell
on 3 Mar 2010 at 7:48
Original issue reported on code.google.com by
scoo...@gmail.com
on 3 Mar 2010 at 12:26