Hi Chamila,

I have tried to replicate your scenario. But I couldn't reproduce the same
issue. What I have done is created a SampleProxy and then enable the
UsernameToken security for that proxy service. Then I created the client
code with the "StockQuoteProxyHttpsEndpoint" as you have mentioned. I saved
the pom file and the classes are generated without any issue. In the
meantime, this port is there in the wsdl as well. In my case, there are 3
WSDL ports in the wsdl file itself as below.

<wsdl:service name="StockQuoteProxy">

<wsdl:port name="StockQuoteProxyHttpsSoap11Endpoint"
binding="tns:StockQuoteProxySoap11Binding">
<soap:address location="
https://chanaka-ThinkPad-T530:8243/services/StockQuoteProxy.StockQuoteProxyHttpsSoap11Endpoint
"/>
</wsdl:port>

<wsdl:port name="StockQuoteProxyHttpsSoap12Endpoint"
binding="tns:StockQuoteProxySoap12Binding">
<soap12:address location="
https://chanaka-ThinkPad-T530:8243/services/StockQuoteProxy.StockQuoteProxyHttpsSoap12Endpoint
"/>
</wsdl:port>

<wsdl:port name="StockQuoteProxyHttpsEndpoint"
binding="tns:StockQuoteProxyHttpBinding">
<http:address location="
https://chanaka-ThinkPad-T530:8243/services/StockQuoteProxy.StockQuoteProxyHttpsEndpoint
"/>
</wsdl:port>

</wsdl:service>

This should be the way it should be. Can you please elaborate more on what
you have done to create the secured proxy service, such that we can get
more information.

Thanks,
Chanaka





On Mon, Dec 9, 2013 at 6:45 AM, Chamila Wijayarathna <[email protected]>wrote:

> When I downloading client pom.xml , I selected "StockQuoteServiceAX
> HttpsEndpoint" as endpoint option in endpoint drop down menu. When
> downloading it by selecting "StockQuoteServiceAXHttpsSoap11Endpoint", I
> was able to build pom.xml successfully. But I can't figure out, why earlier
> one failed and this one is successful.
>
>
> On Mon, Dec 9, 2013 at 4:28 PM, Chamila Wijayarathna <[email protected]>wrote:
>
>> The original pom.xml file has "StockQuoteServiceAXHttpsEndpoint" as the
>> end point and it also give the same result.
>> The wsdl file does not contain any end point with that name, it only
>> contains "StockQuoteServiceAX11Endpoint","StockQuoteServiceAX12Endpoint"
>> and "StockQuoteServiceAXHttpEndpoint" end points.
>> Changing pom.xml with those endpoints also gave the same result.
>>
>>
>>
>> On Mon, Dec 9, 2013 at 10:57 AM, Samisa Abeysinghe <[email protected]>wrote:
>>
>>> It looks like you are trying to use the http binding from client. Given
>>> that this is a secured service, there might not be an http binding, rather
>>> an https binding in there in this service.
>>> Please double check.
>>>
>>> Thanks,
>>> Samisa...
>>>
>>>
>>> Samisa Abeysinghe
>>>
>>> Vice President Training
>>>
>>> WSO2 Inc.
>>> http://wso2.com
>>>
>>>
>>>
>>> On Mon, Dec 9, 2013 at 10:45 AM, Chamila Wijayarathna 
>>> <[email protected]>wrote:
>>>
>>>> Sorry, you can find the stack trace below,
>>>>
>>>>  org.apache.axis2.AxisFault: No port found for the given name 
>>>> :StockQuoteServiceAXHttpEndpoint
>>>>
>>>>
>>>>
>>>>    at 
>>>> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:1041)
>>>>    at 
>>>> org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:332)
>>>>    at 
>>>> org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.populateAllServices(WSDL11ToAllAxisServicesBuilder.java:107)
>>>>
>>>>
>>>>
>>>>
>>>>    at 
>>>> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:169)
>>>>    at 
>>>> org.apache.axis2.maven2.wsdl2code.WSDL2CodeMojo.execute(WSDL2CodeMojo.java:566)
>>>>    at 
>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
>>>>    at 
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>>>>    at 
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>>>>    at 
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>>>>    at 
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>>>>    at 
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>>>>
>>>>
>>>>
>>>>
>>>>    at 
>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>>>>    at 
>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>>>>    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
>>>>    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
>>>>    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
>>>>    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
>>>>    at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
>>>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>    at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>>>>    at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>>    at java.lang.reflect.Method.invoke(Method.java:606)
>>>>    at 
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>>>>    at 
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>>>>    at 
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>>>>    at 
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>>>>
>>>>
>>>>
>>>> On Mon, Dec 9, 2013 at 10:33 AM, Samisa Abeysinghe <[email protected]>wrote:
>>>>
>>>>> You have to send the stack trace please ...
>>>>>
>>>>> Thanks,
>>>>> Samisa...
>>>>>
>>>>>
>>>>> Samisa Abeysinghe
>>>>>
>>>>> Vice President Training
>>>>>
>>>>> WSO2 Inc.
>>>>> http://wso2.com
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Dec 9, 2013 at 10:32 AM, Chamila Wijayarathna <
>>>>> [email protected]> wrote:
>>>>>
>>>>>> Sorry for the inconvenience,
>>>>>>
>>>>>> The error I am getting is,
>>>>>>
>>>>>> [ERROR] Failed to execute goal 
>>>>>> org.apache.axis2:axis2-wsdl2code-maven-plugin:1.6.1-wso2v10:wsdl2code 
>>>>>> (default) on project WSO2-Axis2-Client: Error parsing WSDL: No port 
>>>>>> found for the given name :StockQuoteServiceAXHttpEndpoint -> [Help 1]
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> [ERROR]
>>>>>> [ERROR] To see the full stack trace of the errors, re-run Maven with the 
>>>>>> -e switch.
>>>>>>
>>>>>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>>>>>> [ERROR]
>>>>>> [ERROR] For more information about the errors and possible solutions, 
>>>>>> please read the following articles:
>>>>>> [ERROR] [Help 1] 
>>>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>>>>>>
>>>>>> pom.xml file has following configuration, which seems like the place 
>>>>>> which has the problem.
>>>>>>
>>>>>> <configuration>
>>>>>>     <outputDirectory>${basedir}/generated-sources</outputDirectory>
>>>>>>     
>>>>>> <databindingName>adb</databindingName><portName>StockQuoteServiceAXHttpEndpoint</portName><language>java</language><wsdlFile>http://chamila-Dell-System-Vostro-3450:8280/services/StockQuoteServiceAX?wsdl</wsdlFile>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> </configuration>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Mon, Dec 9, 2013 at 10:26 AM, Samisa Abeysinghe 
>>>>>> <[email protected]>wrote:
>>>>>>
>>>>>>> Please send in the errors in the email itself. That way, it is
>>>>>>> easier to read. You need to learn to copy the correct parts of the error
>>>>>>> into the mail though  :)
>>>>>>>
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Samisa...
>>>>>>>
>>>>>>>
>>>>>>> Samisa Abeysinghe
>>>>>>>
>>>>>>> Vice President Training
>>>>>>>
>>>>>>> WSO2 Inc.
>>>>>>> http://wso2.com
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Dec 9, 2013 at 10:09 AM, Chamila Wijayarathna <
>>>>>>> [email protected]> wrote:
>>>>>>>
>>>>>>>> Hello all,
>>>>>>>> I created a secure proxy service to connect to a web service
>>>>>>>> existing in localhost [1].
>>>>>>>> Then I generated pom.xml file to build a secure client to use the
>>>>>>>> proxy service [2].
>>>>>>>> But when I try to build it using Maven, it gave me this failure
>>>>>>>> message [3].
>>>>>>>> In original pom.xml which gave the same error, it had the
>>>>>>>> <portName> as "StockQuoteServiceAXHttpsEndpoint", but I observed that 
>>>>>>>> such
>>>>>>>> port name does not exist in wsdl file. So I replaced it
>>>>>>>> with "StockQuoteServiceAXHttpEndpoint" which does exist in wsdl file. 
>>>>>>>> What
>>>>>>>> I have done wrong here?
>>>>>>>>
>>>>>>>> 1. https://gist.github.com/cdwijayarathna/7867406
>>>>>>>> 2. https://gist.github.com/cdwijayarathna/7867411
>>>>>>>> 3. https://gist.github.com/cdwijayarathna/7867429
>>>>>>>>
>>>>>>>> Regards.
>>>>>>>>
>>>>>>>> --
>>>>>>>> *Chamila Wijayarathna*
>>>>>>>> Engineering Intern,
>>>>>>>> WSO2 Inc.
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> *Chamila Wijayarathna*
>>>>>> Engineering Intern,
>>>>>> WSO2 Inc.
>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> *Chamila Wijayarathna*
>>>> Engineering Intern,
>>>> WSO2 Inc.
>>>>
>>>>
>>>
>>
>>
>> --
>> *Chamila Wijayarathna*
>> Engineering Intern,
>> WSO2 Inc.
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> *Chamila Wijayarathna*
> Engineering Intern,
> WSO2 Inc.
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
--
Chanaka Fernando
Technical Lead
WSO2, Inc.; http://wso2.com
lean.enterprise.middleware

mobile: +94 773337238
Blog : http://soatutorials.blogspot.com
LinkedIn:http://www.linkedin.com/pub/chanaka-fernando/19/a20/5b0
Twitter:https://twitter.com/chanakaudaya
Wordpress:http://chanakaudaya.wordpress.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to